:root {
  --rr-bg: #0f1117;
  --rr-surface: #171b24;
  --rr-surface-2: #1e2430;
  --rr-border: #2a3342;
  --rr-text: #e6ecf5;
  --rr-text-muted: #9fb0c9;
  --rr-primary: #4f8cff;
  --rr-primary-hover: #6ba0ff;
  --rr-primary-active: #3f78e0;
  --rr-focus: rgba(79, 140, 255, 0.35);
  --rr-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --rr-radius-sm: 8px;
  --rr-radius: 12px;
}

body {
  background: var(--rr-bg);
  color: var(--rr-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.block {
  background: linear-gradient(180deg, var(--rr-surface) 0%, var(--rr-surface-2) 100%);
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius);
  box-shadow: var(--rr-shadow);
}

.block .block_head {
  color: var(--rr-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn,
button.btn,
input[type="button"],
input[type="submit"] {
  border-radius: var(--rr-radius-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn.btn-primary {
  background: var(--rr-primary);
  border-color: var(--rr-primary);
  color: #fff;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--rr-primary-hover);
  border-color: var(--rr-primary-hover);
}

.btn-primary:active,
.btn.btn-primary:active {
  background: var(--rr-primary-active);
  border-color: var(--rr-primary-active);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea,
.form-control {
  background: #111622;
  border: 1px solid var(--rr-border);
  color: var(--rr-text);
  border-radius: var(--rr-radius-sm);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: var(--rr-text-muted);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.btn:focus,
button.btn:focus,
input[type="button"]:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--rr-focus);
  border-color: var(--rr-primary);
}

.table,
.table-bordered {
  color: var(--rr-text);
  border-color: var(--rr-border);
}

.table thead td,
.table thead th {
  background: #121826;
  color: var(--rr-text);
  border-color: var(--rr-border);
}

.table td,
.table th {
  border-color: var(--rr-border);
}

.monitoring-blocks_new .serverNew {
  border: 1px solid rgba(79, 140, 255, 0.25);
  border-radius: var(--rr-radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.monitoring-blocks_new .serverNew:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.serverNew .block-servers-name,
.serverNew .group {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.block_left_side .block,
.col-lg-3 .block,
.vertical-navigation {
  border-color: var(--rr-border);
}

.vertical-navigation ul li a {
  color: var(--rr-text-muted);
  border-radius: var(--rr-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.vertical-navigation a:hover,
.vertical-navigation ul li a:hover {
  color: var(--rr-text);
  background: rgba(79, 140, 255, 0.12);
}

.collapsible-menu.user-menu > li > a {
  border-radius: var(--rr-radius-sm);
}

.collapsible-menu.user-menu li ul {
  background: #141a27;
  border: 1px solid var(--rr-border);
  border-radius: var(--rr-radius-sm);
}

.collapsible-menu.user-menu li ul li a {
  color: var(--rr-text-muted);
}

.user-menu a:hover,
.collapsible-menu.user-menu li ul li a:hover {
  color: var(--rr-text);
  background: rgba(79, 140, 255, 0.12);
}

@media (max-width: 991.98px) {
  .block {
    border-radius: 10px;
  }

  .monitoring-blocks_new {
    gap: 8px;
  }
}

@media (max-width: 599px) {
  .table-responsive {
    border-radius: var(--rr-radius-sm);
  }

  .panel_actions {
    gap: 10px;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 2
   Header, mega menu, server cards, server modal
   ========================================================= */

/* Верхняя панель */
body .wapper .header {
  background: rgba(19, 20, 27, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

body .header .container {
  min-height: 58px;
}

body .header .branding {
  color: var(--rr-text);
  letter-spacing: 0.4px;
  text-decoration: none;
  border-right: none;
}

body .header .branding:hover {
  color: #ffffff;
}

/* Кнопка Меню */
body .header button#blockMenu {
  min-width: 104px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 176, 32, 0.18), transparent 35%),
    linear-gradient(180deg, #1c1f29 0%, #11131a 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body .header button#blockMenu:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 176, 32, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(255, 176, 32, 0.08);
}

body .header button#blockMenu i {
  color: #ffb020;
}

/* Большое меню */
body .blockMenu {
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #1a1b24 0%, #12141b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

body .blockMenuContent {
  padding-top: 34px;
  padding-bottom: 38px;
  gap: 22px;
}

body .blockMenuRow {
  width: calc(100% / 5 - 18px);
  min-width: 220px;
}

body .blockMenuRow .blockMenu_Heading {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 1.4px;
  text-shadow: none;
  filter: none;
  position: relative;
  padding-bottom: 12px;
}

body .blockMenuRow .blockMenu_Heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb020, rgba(79, 140, 255, 0));
}

body .blockMenuRow .blockMenu_Items {
  gap: 7px;
}

body .blockMenuRow .blockMenu_Items .blockMenu_Item {
  min-height: 52px;
  padding: 7px;
  border-radius: 12px;
  color: var(--rr-text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body .blockMenuRow .blockMenu_Items .blockMenu_Item:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 176, 32, 0.22);
  box-shadow: none;
}

body .blockMenu_Item__Icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 176, 32, 0.16), transparent 40%),
    linear-gradient(180deg, #202431 0%, #11141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body .blockMenu_Item:hover .blockMenu_Item__Icon {
  transform: scale(1.03);
  border-color: rgba(255, 176, 32, 0.42);
}

body .blockMenu_Item__Icon svg,
body .blockMenu_Item__Icon i {
  opacity: 0.92;
}

body .blockMenu_Item__Info {
  align-items: flex-start;
}

body .blockMenu_Item__Info_Header {
  color: #d8dfeb;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

body .blockMenu_Item:hover .blockMenu_Item__Info_Header {
  color: #ffffff;
}

body .blockMenu_Item__Info_Desc {
  margin-top: 2px;
  color: var(--rr-text-muted);
  font-size: 12px;
  line-height: 1.25;
}

/* Бейджи в меню, если используются */
body .blockMenu_ItemAirTag {
  background: linear-gradient(90deg, #22c55e, #ffb020);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24);
}

/* Серверные карточки */
body .monitoring-blocks_new {
  gap: 12px;
}

body .monitoring-blocks_new .serverNew {
  height: 96px;
  cursor: pointer;
  background: #151923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

body .monitoring-blocks_new .serverNew::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.88) 0%, rgba(7, 10, 16, 0.58) 45%, rgba(7, 10, 16, 0.28) 100%),
    radial-gradient(circle at 80% 40%, rgba(79, 140, 255, 0.22), transparent 36%);
  pointer-events: none;
}

body .serverNew .progress,
body .serverNew .block-servers-name,
body .serverNew .group {
  position: absolute;
  z-index: 15;
}

body .serverNew .block-map-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

body .monitoring-blocks_new .serverNew::after {
  content: "Подробнее";
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 25;
  font-family: 'Play', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffb020;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

body .monitoring-blocks_new .serverNew:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 32, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

body .monitoring-blocks_new .serverNew:hover::after {
  opacity: 1;
  transform: translateY(0);
}

body .serverNew .block-map-img img {
  opacity: 0.42;
  filter: saturate(1.05) contrast(1.05);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body .serverNew:hover .block-map-img img {
  opacity: 0.58 !important;
  transform: scale(1.04);
}

body .serverNew .block-servers-name {
  top: 15px;
  left: 46px;
  right: 12px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

body .serverNew .progress {
  top: 18px;
  left: 18px;
  width: 8px;
  min-height: 66px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

body .progress-bar-vertical .progress-bar {
  border-radius: 999px;
}

body .serverNew .group {
  left: 46px;
  right: 14px;
  bottom: 16px;
  color: rgba(230, 236, 245, 0.72);
  font-size: 12px;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

body .serverNew .block-servers-group-info {
  color: rgba(255, 255, 255, 0.78);
}

/* Модалка сервера */
body .modal-content {
  background: linear-gradient(180deg, #1b1f2a 0%, #141821 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--rr-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

body .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body .modal-title {
  color: #ffffff;
  font-weight: 700;
}

body .modal-header .close {
  color: #ffffff;
  opacity: 0.75;
}

body .modal-header .close:hover {
  opacity: 1;
}

body .moreInfos {
  gap: 10px;
  margin-bottom: 24px;
}

body .moreInfos a,
body .panel_actions a.copyBtn,
body .panel_actions a.connectBtn {
  border-radius: 10px;
  border: 1px solid rgba(79, 140, 255, 0.36);
  background: rgba(79, 140, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body .moreInfos a:hover,
body .panel_actions a.copyBtn:hover,
body .panel_actions a.connectBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 140, 255, 0.72);
  background: rgba(79, 140, 255, 0.2);
}

body .moreInfos a.moreInfo--bans {
  border-color: rgba(228, 91, 107, 0.45) !important;
  background: rgba(228, 91, 107, 0.12) !important;
}

body .moreInfos a.moreInfo--bans:hover {
  border-color: rgba(228, 91, 107, 0.8) !important;
  background: rgba(228, 91, 107, 0.2) !important;
}

body .panel_actions {
  margin-top: 24px;
  gap: 12px;
}

body .panel_actions a.copyBtn,
body .panel_actions a.connectBtn {
  padding: 10px 14px;
  text-align: center;
}

body .panel_actions a.connectBtn {
  border-color: rgba(35, 191, 102, 0.46);
  background: rgba(35, 191, 102, 0.14);
}

body .panel_actions a.connectBtn:hover {
  border-color: rgba(35, 191, 102, 0.78);
  background: rgba(35, 191, 102, 0.22);
}

/* Адаптация */
@media (max-width: 1199.98px) {
  body .blockMenuRow {
    width: calc(100% / 3 - 18px);
  }

  body .monitoring-blocks_new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  body .blockMenuContent {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  body .blockMenuRow {
    width: 100%;
  }

  body .blockMenuRow .blockMenu_Heading {
    margin-bottom: 12px;
  }

  body .monitoring-blocks_new {
    grid-template-columns: 1fr;
  }

  body .panel_actions {
    flex-direction: column;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 3
   Main content, chat, cases, top players, stats table
   ========================================================= */

/* Общая полировка заголовков блоков */
body .block .block_head {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

body .block .block_head .btn,
body .block .block_head .btn-sm {
  border-radius: 999px;
}

/* =========================
   Chat
   ========================= */

body #chat {
  color: var(--rr-text);
}

body .block_head_chat {
  min-height: 42px;
  gap: 12px;
}

body #chat #chat_messages {
  height: 400px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 151, 212, 0.55) rgba(255, 255, 255, 0.04);
}

body #chat #chat_messages::-webkit-scrollbar {
  width: 7px;
}

body #chat #chat_messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

body #chat #chat_messages::-webkit-scrollbar-thumb {
  background: rgba(108, 151, 212, 0.55);
  border-radius: 999px;
}

body #chat #chat_messages .chat_message {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  padding: 10px 8px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

body #chat #chat_messages .chat_message:first-child {
  border-top: 0;
}

body #chat #chat_messages .chat_message:hover {
  background: rgba(255, 255, 255, 0.035);
}

body #chat #chat_messages .chat_message > a img,
body #chat #chat_messages .chat_message .avatar_c51b4e {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

body #chat #chat_messages .chat_message .message {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(230, 236, 245, 0.88);
}

body #chat #chat_messages .chat_message .message .info {
  height: auto;
  min-height: 18px;
  margin-bottom: 4px;
}

body #chat #chat_messages .chat_message .message .info .author {
  font-weight: 700;
}

body #chat #chat_messages .chat_message .message .info .date {
  color: rgba(230, 236, 245, 0.58);
}

body #chat #chat_messages .chat_message .with_code {
  color: rgba(230, 236, 245, 0.9);
}

body #chat .input-group {
  align-items: stretch;
}

body #chat .input-group .smile_input {
  width: calc(100% - 126px);
}

body #chat #message_input {
  min-height: 40px;
  background: #101620;
  border: 1px solid rgba(108, 151, 212, 0.28);
  color: var(--rr-text);
}

body #chat .input-group #send_button {
  width: 116px;
  min-height: 40px;
  margin-left: 10px;
  border-radius: 10px;
  border: 1px solid rgba(108, 151, 212, 0.55);
  background: rgba(108, 151, 212, 0.14);
  color: #ffffff;
  font-weight: 600;
}

body #chat .input-group #send_button:hover {
  background: rgba(108, 151, 212, 0.24);
  border-color: rgba(108, 151, 212, 0.85);
}

body #chat .input-group #smile_btn {
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body #chat .input-group #smile_btn:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* =========================
   Cases block
   ========================= */

body .block_drop_cases {
  position: relative;
  overflow: hidden;
}

body .block_drop_cases::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 176, 32, 0.08), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(108, 151, 212, 0.1), transparent 30%);
  pointer-events: none;
}

body .block_drop_cases > * {
  position: relative;
  z-index: 1;
}

body .block_drop_cases .drop_live {
  align-items: center;
  gap: 14px;
}

body .block_drop_cases .title_block_head {
  align-items: center;
}

body .block_drop_cases .title_block_head_icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 176, 32, 0.18), transparent 40%),
    linear-gradient(180deg, #202431 0%, #11141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body .block_drop_cases .cases-opened {
  color: rgba(230, 236, 245, 0.55);
}

body .block_drop_cases a.read-more {
  color: rgba(230, 236, 245, 0.58);
  text-decoration: none;
  transition: color 0.18s ease;
}

body .block_drop_cases a.read-more:hover {
  color: #ffb020;
}

body .block_drop_cases .drop_from_cases {
  gap: 14px;
}

body .block_drop_cases .drop_from_case {
  position: relative;
  min-height: 158px;
  border-radius: 14px;
  padding: 12px 10px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body .block_drop_cases .drop_from_case:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

body .block_drop_cases .case-name {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 0 16px currentColor;
}

body .block_drop_cases .drop_name {
  min-height: 44px;
  justify-content: center;
}

body .block_drop_cases .first-line {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

body .block_drop_cases .second-line {
  color: rgba(230, 236, 245, 0.72);
  font-size: 12px;
}

body .block_drop_cases .drop_user {
  width: 100%;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

body .block_drop_cases .drop_user img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body .block_drop_cases .time-ago {
  color: rgba(230, 236, 245, 0.52);
}

/* =========================
   Sidebar: top players / donators
   ========================= */

body #top_players {
  padding: 16px;
}

body #top_players .top_players_heading {
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body #top_players .heading_box {
  align-items: center;
}

body #top_players .heading_box svg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(180deg, #23bf66 0%, #15994e 100%);
}

body #top_players .currentMethod {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

body #top_players .currentMethodAbout {
  color: rgba(230, 236, 245, 0.62);
}

body #top_players .stats_switcher button {
  min-width: 34px;
  min-height: 32px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body #top_players .stats_switcher button:hover,
body #top_players .stats_switcher button.active {
  background: #23bf66;
  border-color: #23bf66;
}

body #top_players .top_players_servers {
  min-height: 40px;
  border-radius: 10px !important;
}

body #top_players a.player {
  padding: 7px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

body #top_players a.player:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
}

body #top_players a.player img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body #top_players a.player .player_info .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body #top_players a.player .player_info .stats > div {
  color: rgba(230, 236, 245, 0.72);
}

body .block_left_side .buttons .btn,
body .headerSNow .buttons .btn {
  border-radius: 10px;
}

/* =========================
   Stats page
   ========================= */

body .block.block-search {
  overflow: hidden;
}

body .block.block-search > .input-search {
  background: #101620;
  border-top: 1px solid rgba(108, 151, 212, 0.2);
  border-left: 1px solid rgba(108, 151, 212, 0.46);
  border-bottom: 1px solid rgba(108, 151, 212, 0.2);
}

body .block.block-search > .input-search i.fa-search {
  color: rgba(108, 151, 212, 0.95);
  font-size: 14px;
  top: 13px;
}

body .block.block-search > .input-search input,
body .block.block-search > .input-search select {
  min-height: 44px;
  background: transparent;
  border-color: transparent;
  color: var(--rr-text);
}

body .block.block-search > .input-search input::placeholder {
  color: rgba(230, 236, 245, 0.58);
}

body .block.block-search .table-responsive {
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body .block.block-search table.table {
  margin-bottom: 0;
}

body .block.block-search table.table thead td,
body .block.block-search table.table thead th {
  background: #111827;
  color: #ffffff;
  font-weight: 700;
}

body .block.block-search table.table tbody > tr:not(.hidden-tr) > td {
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.18s ease;
}

body .block.block-search table.table tbody > tr:not(.hidden-tr):hover > td {
  background: rgba(108, 151, 212, 0.08);
}

body .block.block-search table.table td,
body .block.block-search table.table th {
  vertical-align: middle;
}

body .block.block-search table.table img {
  border-radius: 10px;
}

body .block.block-search table.table .label {
  border-radius: 7px;
  padding: 5px 8px;
  font-weight: 700;
}

/* Навигация серверов на странице статистики */
body .vertical-navigation ul li a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body .vertical-navigation ul li a:hover {
  transform: translateX(2px);
}

body .vertical-navigation ul li.active a,
body .vertical-navigation ul li a.active {
  background: rgba(108, 151, 212, 0.16);
  color: #ffffff;
}

/* Pagination */
body #pagination2 .pagination {
  margin-top: 18px;
}

body #pagination2 .pagination > li > a,
body #pagination2 .pagination > li > span {
  border-radius: 9px;
  margin: 0 3px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(230, 236, 245, 0.78);
}

body #pagination2 .pagination > li > a:hover,
body #pagination2 .pagination > li > span:hover,
body #pagination2 .pagination > .active > a,
body #pagination2 .pagination > .active > span {
  background: rgba(108, 151, 212, 0.24);
  border-color: rgba(108, 151, 212, 0.55);
  color: #ffffff;
}

/* Mobile */
@media (max-width: 767.98px) {
  body #chat #chat_messages {
    height: 320px;
  }

  body #chat .input-group {
    flex-direction: column;
    gap: 10px;
  }

  body #chat .input-group .smile_input,
  body #chat .input-group #send_button {
    width: 100%;
    margin-left: 0;
  }

  body .block_drop_cases .drop_from_cases {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body .block_drop_cases .drop_from_case {
    min-width: 170px;
  }

  body .block.block-search .table-responsive {
    overflow-x: auto;
  }
}

/* =========================================================
   RR-GAME redesign — Footer background transition fix
   ========================================================= */

body footer,
body .footer {
  position: relative;
  margin-top: 32px;
  background: linear-gradient(180deg, #1b1d26 0%, #171923 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body footer::before,
body .footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 23, 0) 0%,
    rgba(15, 17, 23, 0.55) 45%,
    rgba(27, 29, 38, 0.95) 100%
  );
}

/* Если у футера есть внутренний контейнер/обертка */
body footer .container,
body .footer .container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   RR-GAME redesign — Footer clear fix
   ========================================================= */

body footer,
body .footer {
  clear: both;
  display: block;
  width: 100%;
}

/* Дополнительная страховка для bootstrap/floated layout */
body .footer::after,
body footer::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================================================
   RR-GAME redesign — Footer band fix
   ========================================================= */

body footer,
body .footer {
  margin-top: 48px;
  background: #111722;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body footer::before,
body .footer::before {
  display: none;
}

/* =========================================================
   RR-GAME redesign — Stage 4
   Profile, settings, notifications, user menu, forms
   ========================================================= */

/* =========================
   User dropdown
   ========================= */

body .collapsible-menu.user-menu {
  margin: 0;
}

body .collapsible-menu.user-menu > li > a {
  min-height: 64px;
  padding: 10px 16px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 176, 32, 0.12), transparent 32%),
    linear-gradient(180deg, #1b1d26 0%, #141720 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 176, 32, 0.35);
}

body .collapsible-menu.user-menu > li > a img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

body .collapsible-menu.user-menu > li > a h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body .collapsible-menu.user-menu > li > a p {
  color: rgba(230, 236, 245, 0.62);
  font-size: 12px;
}

body .collapsible-menu.user-menu li ul {
  min-width: 280px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #1b1d26 0%, #141821 100%);
  border: 1px solid rgba(108, 151, 212, 0.18);
  border-top-color: rgba(255, 176, 32, 0.36);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body .collapsible-menu.user-menu li ul li a {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: rgba(230, 236, 245, 0.72);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body .collapsible-menu.user-menu li ul li a:hover {
  color: #ffffff;
  background: rgba(108, 151, 212, 0.12);
  transform: translateX(2px);
}

/* =========================
   Settings page
   ========================= */

body .profile-settings .block {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 151, 212, 0.08), transparent 34%),
    linear-gradient(180deg, #171d28 0%, #141923 100%);
}

body .profile-settings .block .block_head {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

body .profile-settings .form-group {
  margin-bottom: 18px;
}

body .profile-settings .form-group label {
  margin-bottom: 7px;
}

body .profile-settings .form-group label h4 {
  margin: 0;
  color: rgba(230, 236, 245, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

body .profile-settings .input-group {
  align-items: stretch;
}

body .profile-settings .input-group-prepend .btn {
  min-width: 96px;
  border-radius: 10px 0 0 10px;
  border-color: rgba(108, 151, 212, 0.5);
  background: rgba(108, 151, 212, 0.12);
  color: #dce8ff;
  font-weight: 600;
}

body .profile-settings .input-group-prepend .btn:hover {
  background: rgba(108, 151, 212, 0.22);
  border-color: rgba(108, 151, 212, 0.82);
  color: #ffffff;
}

body .profile-settings .input-group .form-control {
  min-height: 40px;
  border-left: 0;
  background: #101620;
}

body .profile-settings .editing-date .form-control {
  border-left: 1px solid rgba(108, 151, 212, 0.18);
}

body .profile-settings select.form-control {
  cursor: pointer;
}

body .profile-settings input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #101620;
  border: 1px solid rgba(108, 151, 212, 0.28);
  color: rgba(230, 236, 245, 0.78);
}

body .profile-settings #avatar {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

body .profile-settings #signature {
  width: 100% !important;
  min-height: 150px;
  padding: 12px;
  border-radius: 12px;
  background: #101620;
  border: 1px solid rgba(108, 151, 212, 0.28);
  color: var(--rr-text);
  resize: vertical;
}

body .profile-settings .btn-group-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body .profile-settings .btn-group-toggle .btn {
  border-radius: 999px;
  border-color: rgba(108, 151, 212, 0.3);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(230, 236, 245, 0.74);
}

body .profile-settings .btn-group-toggle .btn.active,
body .profile-settings .btn-group-toggle .btn:hover {
  background: rgba(35, 191, 102, 0.18);
  border-color: rgba(35, 191, 102, 0.58);
  color: #ffffff;
}

/* Settings info boxes */

body .profile-settings .noty,
body .profile-settings .noty-block {
  padding: 12px 14px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 32, 0.1), transparent 34%),
    linear-gradient(180deg, #141a24 0%, #101620 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(230, 236, 245, 0.82);
  line-height: 1.45;
}

body .profile-settings .noty a,
body .profile-settings .noty-block a {
  color: #8fb7ff;
  text-decoration: none;
}

body .profile-settings .noty a:hover,
body .profile-settings .noty-block a:hover {
  color: #ffb020;
}

body .profile-settings .noty-block.info {
  border-color: rgba(108, 151, 212, 0.28);
  background: rgba(108, 151, 212, 0.08);
}

/* Multiaccounts */

body .profile-settings .multiAccountsWrapper {
  gap: 14px;
}

body .profile-settings .multiAccount {
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

body .profile-settings .multiAccount img {
  border-radius: 10px !important;
}

body .profile-settings .multiAccount a {
  color: #dce8ff;
  font-weight: 700;
  text-decoration: none;
}

body .profile-settings .multiAccount a:hover {
  color: #ffb020;
}

/* Social account cards */

body .profile-settings #vk_area .noty-block a,
body .profile-settings #steam_area .noty-block a,
body .profile-settings #fb_area .noty-block a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body .profile-settings #vk_area .noty-block img,
body .profile-settings #steam_area .noty-block img,
body .profile-settings #fb_area .noty-block img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Telegram warning */

body .profile-settings .unset_tg_warning {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(228, 91, 107, 0.1);
  border: 1px solid rgba(228, 91, 107, 0.34);
  color: #ff9aa6 !important;
  line-height: 1.45;
}

body .profile-settings .set_tg_info {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(35, 191, 102, 0.1);
  border: 1px solid rgba(35, 191, 102, 0.28);
  color: rgba(230, 236, 245, 0.84);
}

/* =========================
   Profile page
   ========================= */

body .profile-page .block.profile {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 176, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #171d28 0%, #141923 100%);
}

body .profile-page .block.profile > img:first-child {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

body .profile-page .profile .vertical-navigation {
  margin-top: 16px;
}

body .profile-page .profile .vertical-navigation ul li a {
  min-height: 40px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  color: rgba(230, 236, 245, 0.74);
  text-decoration: none;
}

body .profile-page .profile .vertical-navigation ul li a:hover {
  color: #ffffff;
  background: rgba(108, 151, 212, 0.12);
}

body .profile-page .gift-skin-btn,
body .profile-page .gift-service-btn,
body .profile-page .transfer-money-btn,
body .profile-page .gift-to-user-btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
}

body .profile-page .gift-skin-btn,
body .profile-page .gift-service-btn,
body .profile-page .gift-to-user-btn {
  background: rgba(255, 176, 32, 0.12) !important;
  border: 1px solid rgba(255, 176, 32, 0.36) !important;
  color: #ffcf78 !important;
}

body .profile-page .transfer-money-btn {
  background: rgba(35, 191, 102, 0.12) !important;
  border: 1px solid rgba(35, 191, 102, 0.36) !important;
  color: #85f0b2 !important;
}

body .profile-page .block.profile table.table {
  margin-bottom: 0;
}

body .profile-page .block.profile table.table td {
  background: rgba(255, 255, 255, 0.018);
}

body .profile-page .block.profile table.table tr:hover td {
  background: rgba(108, 151, 212, 0.065);
}

body .profile-page .smile_input_forum {
  display: flex;
  align-items: center;
  gap: 10px;
}

body .profile-page .smile_input_forum textarea,
body .profile-page .smile_input_forum input[type="text"] {
  min-height: 40px;
  background: #101620;
  border: 1px solid rgba(108, 151, 212, 0.28);
  color: var(--rr-text);
}

body .profile-page #comments {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* Profile gifts */

body .profile-page .userGiftsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body .profile-page .showAllGifts,
body .profile-page .sendGiftUser {
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 32, 0.36);
  background: rgba(255, 176, 32, 0.12);
  color: #ffcf78;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body .profile-page .showAllGifts:hover,
body .profile-page .sendGiftUser:hover {
  transform: translateY(-1px);
  background: rgba(255, 176, 32, 0.2);
  border-color: rgba(255, 176, 32, 0.62);
}

body .profile-page .gifts-items {
  gap: 10px;
}

body .profile-page .gift {
  border-radius: 12px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

body .profile-page .gift:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* =========================
   Notifications page
   ========================= */

body #notifications_line {
  background:
    radial-gradient(circle at 100% 0%, rgba(108, 151, 212, 0.09), transparent 34%),
    linear-gradient(180deg, #171d28 0%, #141923 100%);
}

body #notifications_line .block_head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body #notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body #notifications .noty-block {
  position: relative;
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  color: rgba(230, 236, 245, 0.84);
  line-height: 1.45;
}

body #notifications .noty-block:hover {
  background: rgba(108, 151, 212, 0.075);
  border-color: rgba(108, 151, 212, 0.22);
}

body #notifications .noty-block span {
  display: block;
  margin-top: 6px;
  color: rgba(230, 236, 245, 0.52);
  font-size: 12px;
}

body #notifications .noty-block i.icon-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(230, 236, 245, 0.62);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body #notifications .noty-block i.icon-remove:hover {
  color: #ffffff;
  background: rgba(228, 91, 107, 0.24);
  transform: scale(1.04);
}

/* =========================
   Scoped buttons inside cabinet pages
   ========================= */

body .profile-settings .btn-outline-primary,
body .profile-page .btn-outline-primary,
body #notifications_line .btn-outline-primary {
  border-radius: 10px;
  border-color: rgba(108, 151, 212, 0.48);
  background: rgba(108, 151, 212, 0.1);
  color: #dce8ff;
  font-weight: 600;
}

body .profile-settings .btn-outline-primary:hover,
body .profile-page .btn-outline-primary:hover,
body #notifications_line .btn-outline-primary:hover {
  border-color: rgba(108, 151, 212, 0.82);
  background: rgba(108, 151, 212, 0.2);
  color: #ffffff;
}

body .profile-settings .btn-primary,
body .profile-page .btn-primary {
  border-radius: 10px;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 991.98px) {
  body .profile-settings .block,
  body .profile-page .block {
    margin-bottom: 16px;
  }
}

@media (max-width: 767.98px) {
  body .collapsible-menu.user-menu li ul {
    min-width: 250px;
  }

  body .profile-settings .input-group {
    flex-direction: column;
  }

  body .profile-settings .input-group-prepend .btn {
    width: 100%;
    min-width: 0;
    border-radius: 10px 10px 0 0;
  }

  body .profile-settings .input-group .form-control {
    width: 100%;
    border-left: 1px solid rgba(108, 151, 212, 0.28);
    border-radius: 0 0 10px 10px;
  }

  body .profile-settings .editing-date {
    gap: 8px;
  }

  body .profile-settings .editing-date .form-control {
    border-radius: 10px;
  }

  body .profile-page .block.profile > img:first-child {
    max-width: 260px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  body .profile-page .smile_input_forum {
    flex-direction: column;
    align-items: stretch;
  }

  body #notifications_line .block_head {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 4.1 polish
   Notifications and user dropdown compact fix
   ========================================================= */

/* User dropdown: немного компактнее */
body .collapsible-menu.user-menu > li > a {
  min-height: 56px;
  padding: 8px 14px;
}

body .collapsible-menu.user-menu > li > a img {
  width: 38px;
  height: 38px;
}

body .collapsible-menu.user-menu li ul {
  min-width: 270px;
  padding: 8px;
}

body .collapsible-menu.user-menu li ul li a {
  min-height: 38px;
  padding: 8px 11px;
}

/* =========================================================
   RR-GAME redesign — User dropdown stable fix
   ========================================================= */

body .header,
body .wapper .header {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

body .header .container {
  overflow: visible;
}

body .collapsible-menu.user-menu {
  position: relative;
  z-index: 1100;
  overflow: visible;
}

body .collapsible-menu.user-menu > li {
  position: relative;
  overflow: visible;
}

body .collapsible-menu.user-menu li ul {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1200;
  min-width: 270px;
  max-width: calc(100vw - 24px);
}

/* Не трогаем display/visibility/opacity.
   Открытием меню должен управлять штатный JS/старый CSS шаблона. */

/* Чтобы серверные карточки не перекрывали меню на мобильном */
body .monitoring-blocks_new,
body .monitoring-blocks_new .serverNew {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  body .header,
  body .wapper .header {
    z-index: 2000;
  }

  body .collapsible-menu.user-menu {
    z-index: 2100;
  }

  body .collapsible-menu.user-menu li ul {
    z-index: 2200;
    right: 0;
    left: auto;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
}

/* =========================================================
   RR-GAME redesign — User dropdown open-state minimal fix
   ========================================================= */
@media (min-width: 768px) {
  body .collapsible-menu.user-menu > li > a.open + ul {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================================================
   RR-GAME redesign — User dropdown desktop final fix
   ========================================================= */
@media (min-width: 768px) {
  body .collapsible-menu.user-menu,
  body .collapsible-menu.user-menu > li {
    overflow: visible;
  }

  body .collapsible-menu.user-menu li ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 5000;
  }

  body .collapsible-menu.user-menu:hover > li > ul,
  body .collapsible-menu.user-menu:focus-within > li > ul,
  body .collapsible-menu.user-menu > li:hover > ul,
  body .collapsible-menu.user-menu > li:focus-within > ul,
  body .collapsible-menu.user-menu > li.open > ul,
  body .collapsible-menu.user-menu > li.active > ul,
  body .collapsible-menu.user-menu > li.show > ul,
  body .collapsible-menu.user-menu > li.opened > ul,
  body .collapsible-menu.user-menu > li > a.open + ul,
  body .collapsible-menu.user-menu > li > a.active + ul,
  body .collapsible-menu.user-menu > li > a.show + ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   RR-GAME redesign — User dropdown desktop overflow fix
   ========================================================= */
@media (min-width: 992px) {
  body .wapper,
  body .wapper .header,
  body .wapper .header .container,
  body .wapper .header .collapsible-menu.user-menu,
  body .wapper .header .collapsible-menu.user-menu > li {
    overflow: visible !important;
  }

  body .wapper .header {
    position: relative;
    z-index: 5000;
  }

  body .wapper .header .collapsible-menu.user-menu {
    position: relative;
    z-index: 5100;
    height: 70px;
  }

  body .wapper .header .collapsible-menu.user-menu > li {
    position: relative;
    height: 100%;
  }

  body .wapper .header .collapsible-menu.user-menu > li > ul {
    position: absolute !important;
    top: 70px !important;
    right: 0 !important;
    left: auto !important;
    z-index: 5200 !important;
    min-width: 240px;
    background: #24242d;
    border: 1px solid rgba(108, 151, 212, 0.35);
    border-top: 1px solid rgba(255, 176, 32, 0.55);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
    overflow: hidden;
  }

  body .wapper .header .collapsible-menu.user-menu > li > a.open + ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   RR-GAME redesign — Server modal mobile buttons fix
   ========================================================= */

@media (max-width: 767.98px) {
  body .modal-content {
    margin-top: 18px;
  }

  body .moreInfos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
    padding-top: 6px;
  }

  body .moreInfos a {
    position: relative;
    top: auto;
    transform: none;
    min-height: 38px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
  }

  body .moreInfos a i,
  body .moreInfos a svg {
    margin-right: 6px;
  }
}

@media (max-width: 420px) {
  body .moreInfos {
    gap: 7px;
  }

  body .moreInfos a {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    font-size: 14px;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 5
   Final responsive polish, lower blocks, floating notices
   ========================================================= */

/* Общая мягкая полировка нижних блоков */
body .block {
  background:
    radial-gradient(circle at 12% 0%, rgba(108, 151, 212, 0.055), transparent 28%),
    linear-gradient(180deg, var(--rr-surface) 0%, var(--rr-surface-2) 100%);
}

body .block:not(.block-search) .block_head,
body .block .title_block_head,
body .block .block-title {
  border-bottom-color: rgba(255, 255, 255, 0.065);
}

/* Лотерея / крупные промо-блоки */
body .lottery,
body .daily_lottery,
body .block_lottery,
body .blockLottery {
  overflow: hidden;
  border-radius: 14px;
}

body .lottery .btn,
body .daily_lottery .btn,
body .block_lottery .btn,
body .blockLottery .btn {
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

/* Форумные и событийные списки — только визуально */
body .forum,
body .forum_block,
body .last_events,
body .events_block,
body .project_events,
body .block_forum {
  border-radius: 14px;
}

body .forum table,
body .forum_block table,
body .last_events table,
body .events_block table,
body .project_events table,
body .block_forum table {
  margin-bottom: 0;
}

body .forum tr,
body .forum_block tr,
body .last_events tr,
body .events_block tr,
body .project_events tr,
body .block_forum tr {
  transition: background 0.18s ease;
}

body .forum tr:hover,
body .forum_block tr:hover,
body .last_events tr:hover,
body .events_block tr:hover,
body .project_events tr:hover,
body .block_forum tr:hover {
  background: rgba(108, 151, 212, 0.055);
}

/* Онлайн-аватарки / "Сегодня были" */
body .online_users,
body .users_online,
body .today_users,
body .block_online {
  overflow: hidden;
}

body .online_users img,
body .users_online img,
body .today_users img,
body .block_online img {
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body .online_users img:hover,
body .users_online img:hover,
body .today_users img:hover,
body .block_online img:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

/* Плавающие уведомления типа "Заявок в друзья" */
body .friends_requests,
body .friend_requests,
body .friends-request,
body .friendsRequest,
body .request-friends {
  border-radius: 10px 0 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

/* Если кнопка/панель заявок fixed внизу — делаем аккуратнее */
body [class*="friend"][class*="request"] {
  max-width: min(420px, calc(100vw - 24px));
}

/* Карточки серверов: финальная полировка адаптива */
@media (min-width: 768px) {
  body .monitoring-blocks_new .serverNew {
    min-width: 0;
  }

  body .monitoring-blocks_new .serverNew:hover {
    will-change: transform;
  }
}

/* Мобильная версия */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  body .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body .block {
    border-radius: 13px;
  }

  body .block .block_head,
  body .block .title_block_head {
    font-size: 15px;
    line-height: 1.3;
  }

  body .monitoring-blocks_new {
    gap: 12px;
    margin-top: 14px;
  }

  body .monitoring-blocks_new .serverNew {
    height: 124px;
    border-radius: 14px;
  }

  body .serverNew .progress {
    top: 18px;
    left: 16px;
    min-height: 84px;
  }

  body .serverNew .block-servers-name {
    top: 18px;
    left: 58px;
    right: 14px;
    font-size: 17px;
    line-height: 1.22;
    letter-spacing: 0.9px;
  }

  body .serverNew .group {
    left: 58px;
    right: 14px;
    bottom: 20px;
    font-size: 14px;
    line-height: 1.35;
  }

  body .monitoring-blocks_new .serverNew::after {
    display: none;
  }

  body #chat {
    margin-top: 14px;
  }

  body #chat #chat_messages {
    padding-right: 4px;
  }

  body #chat #message_input,
  body #chat .input-group #send_button {
    min-height: 42px;
  }

  body .block_drop_cases .drop_from_case {
    min-width: 178px;
  }

  body .block_drop_cases .drop_from_cases {
    scroll-snap-type: x proximity;
  }

  body .block_drop_cases .drop_from_case {
    scroll-snap-align: start;
  }

  body .forum,
  body .forum_block,
  body .last_events,
  body .events_block,
  body .project_events,
  body .block_forum {
    overflow-x: auto;
  }

  body .online_users img,
  body .users_online img,
  body .today_users img,
  body .block_online img {
    width: 32px;
    height: 32px;
  }

  body .friends_requests,
  body .friend_requests,
  body .friends-request,
  body .friendsRequest,
  body .request-friends {
    left: 12px !important;
    right: 12px !important;
    bottom: 72px !important;
    width: auto !important;
    max-width: none;
    border-radius: 10px;
    text-align: center;
  }

  body [class*="friend"][class*="request"] {
    max-width: calc(100vw - 24px);
  }
}

/* Очень узкие экраны */
@media (max-width: 399px) {
  body .serverNew .block-servers-name {
    font-size: 15px;
    letter-spacing: 0.6px;
  }

  body .serverNew .group {
    font-size: 13px;
  }

  body .header button#blockMenu {
    min-width: 92px;
    height: 34px;
  }

  body .collapsible-menu.user-menu > li > a {
    min-height: 52px;
  }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1199.98px) {
  body .monitoring-blocks_new .serverNew {
    height: 104px;
  }

  body .serverNew .block-servers-name {
    font-size: 14px;
  }

  body .serverNew .group {
    font-size: 12px;
  }
}

/* Мягкий режим для пользователей с отключенной анимацией */
@media (prefers-reduced-motion: reduce) {
  body .serverNew,
  body .blockMenu_Item,
  body #top_players a.player,
  body .drop_from_case,
  body .online_users img,
  body .users_online img,
  body .today_users img,
  body .block_online img {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 5.1
   Notifications final dark override
   ========================================================= */
body .notifications .alert,
body .notification,
body .notifications_block .alert,
body .block .alert {
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 151, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #172030 0%, #121a27 100%) !important;
  border: 1px solid rgba(108, 151, 212, 0.24) !important;
  border-left: 4px solid #23bf66 !important;
  color: rgba(230, 236, 245, 0.9) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
}

body .notifications .alert-info,
body .block .alert-info {
  border-left-color: #6c97d4 !important;
}

body .notifications .alert-success,
body .block .alert-success {
  border-left-color: #23bf66 !important;
}

body .notifications .alert-warning,
body .block .alert-warning {
  border-left-color: #ffb020 !important;
}

body .notifications .alert-danger,
body .block .alert-danger {
  border-left-color: #e45b6b !important;
}

body .notifications .alert a,
body .notification a,
body .block .alert a {
  color: #8fb8ff;
  text-decoration: none;
}

body .notifications .alert a:hover,
body .notification a:hover,
body .block .alert a:hover {
  color: #ffffff;
}

body .notifications .alert .close,
body .notification .close,
body .block .alert .close {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(230, 236, 245, 0.72) !important;
  border-radius: 10px;
  opacity: 1;
}

body .notifications .alert .close:hover,
body .notification .close:hover,
body .block .alert .close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* =========================================================
   RR-GAME redesign — Stage 5.2
   Notifications success override fix
   ========================================================= */
body .notifications .alert-success,
body .notifications_block .alert-success,
body .block .alert-success,
body .alert.alert-success,
body div.alert-success {
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 151, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #172030 0%, #121a27 100%) !important;
  border: 1px solid rgba(108, 151, 212, 0.24) !important;
  border-left: 4px solid #23bf66 !important;
  color: rgba(230, 236, 245, 0.92) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body .notifications .alert-success *,
body .notifications_block .alert-success *,
body .block .alert-success *,
body .alert.alert-success *,
body div.alert-success * {
  color: inherit;
}

body .notifications .alert-success b,
body .notifications .alert-success strong,
body .notifications_block .alert-success b,
body .notifications_block .alert-success strong,
body .block .alert-success b,
body .block .alert-success strong,
body .alert.alert-success b,
body .alert.alert-success strong,
body div.alert-success b,
body div.alert-success strong {
  color: #ffffff !important;
}

body .notifications .alert-success .close,
body .notifications_block .alert-success .close,
body .block .alert-success .close,
body .alert.alert-success .close,
body div.alert-success .close {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(230, 236, 245, 0.85) !important;
  border-radius: 8px;
  opacity: 1;
}

body .notifications .alert-success .close:hover,
body .notifications_block .alert-success .close:hover,
body .block .alert-success .close:hover,
body .alert.alert-success .close:hover,
body div.alert-success .close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* =========================================================
   RR-GAME redesign — Stage 5.3
   Notifications .noty-block success override
   ========================================================= */
body #notifications .noty-block.success,
body #notifications_line .noty-block.success,
body .noty-block.success {
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 151, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #172030 0%, #121a27 100%) !important;
  border: 1px solid rgba(108, 151, 212, 0.24) !important;
  border-left: 4px solid #23bf66 !important;
  color: rgba(230, 236, 245, 0.92) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body #notifications .noty-block.success *,
body #notifications_line .noty-block.success *,
body .noty-block.success * {
  color: inherit !important;
}

body #notifications .noty-block.success b,
body #notifications .noty-block.success strong,
body #notifications_line .noty-block.success b,
body #notifications_line .noty-block.success strong,
body .noty-block.success b,
body .noty-block.success strong {
  color: #ffffff !important;
}

body #notifications .noty-block.success .icon-remove,
body #notifications_line .noty-block.success .icon-remove,
body .noty-block.success .icon-remove {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(230, 236, 245, 0.85) !important;
  border-radius: 8px;
  opacity: 1;
}

body #notifications .noty-block.success .icon-remove:hover,
body #notifications_line .noty-block.success .icon-remove:hover,
body .noty-block.success .icon-remove:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* =========================================================
   RR-GAME redesign — Stage 6
   Final stability, mobile safety, accessibility
   ========================================================= */

/* Защита от случайного горизонтального скролла */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

/* Безопасная адаптация основных контейнеров */
body .container,
body .container-fluid {
  max-width: 100%;
}

/* Focus-visible: только для клавиатурной навигации */
body a:focus-visible,
body button:focus-visible,
body .btn:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible,
body [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 151, 212, 0.38) !important;
  border-color: rgba(108, 151, 212, 0.75) !important;
}

/* Убираем лишний focus при клике мышью */
body a:focus:not(:focus-visible),
body button:focus:not(:focus-visible),
body .btn:focus:not(:focus-visible) {
  box-shadow: none;
}

/* Модальные окна: стабильность и читаемость */
body .modal-dialog {
  max-width: min(920px, calc(100vw - 24px));
}

body .modal-body {
  color: rgba(230, 236, 245, 0.9);
}

body .modal-body .table-responsive {
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Таблицы: безопасная читаемость */
body .table-responsive {
  -webkit-overflow-scrolling: touch;
}

body table.table {
  border-collapse: separate;
  border-spacing: 0;
}

body table.table td,
body table.table th {
  word-break: normal;
}

/* Длинные ники/ссылки не должны ломать layout */
body .chat_message .message,
body .noty-block,
body .table td,
body .table th,
body .player_info,
body .block {
  overflow-wrap: anywhere;
}

/* Формы: стабильный внешний вид */
body input[type="text"],
body input[type="password"],
body input[type="email"],
body input[type="number"],
body input[type="search"],
body input[type="url"],
body select,
body textarea,
body .form-control {
  min-height: 38px;
}

body textarea,
body .form-control {
  max-width: 100%;
}

/* Select в тёмной теме */
body select,
body .form-control {
  color-scheme: dark;
}

/* Кнопки: небольшая полировка без глобального button */
body .btn,
body button.btn,
body input[type="button"],
body input[type="submit"] {
  line-height: 1.25;
  white-space: normal;
}

/* Карточки и изображения не должны вылезать */
body .block img,
body .modal-body img,
body #chat img,
body .monitoring-blocks_new img {
  max-width: 100%;
}

body .block img,
body .modal-body img,
body #chat img,
body .monitoring-blocks_new img {
  height: auto;
}

/* Online/users avatars grid safety */
body .online_users,
body .users-online,
body .block-online,
body .last_online {
  max-width: 100%;
}

/* Floating notices: безопаснее на десктопе */
body .friends-request,
body .friend-request,
body #friends_request,
body #friends_requests {
  max-width: min(420px, calc(100vw - 24px));
}

/* =========================
   Mobile final fixes
   ========================= */
@media (max-width: 767.98px) {
  body {
    min-width: 0;
  }

  body .container,
  body .container-fluid {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  body .block {
    max-width: 100%;
  }

  body .block .block_head {
    font-size: 15px;
    line-height: 1.25;
  }

  body .modal-dialog {
    width: auto;
    margin: 10px;
  }

  body .modal-content {
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  body .modal-header,
  body .modal-body,
  body .modal-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  body .modal-title {
    font-size: 17px;
    line-height: 1.25;
  }

  body .table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body table.table {
    min-width: 560px;
  }

  body .block.block-search table.table {
    min-width: 640px;
  }

  body .block.block-search > .input-search {
    min-height: 44px;
  }

  body .block.block-search > .input-search input {
    font-size: 14px;
  }

  body .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body #pagination2 .pagination > li > a,
  body #pagination2 .pagination > li > span {
    margin: 0;
  }

  body .noty-block {
    padding: 14px 44px 14px 14px !important;
    font-size: 14px;
    line-height: 1.42;
  }

  body .noty-block .icon-remove {
    top: 10px;
    right: 10px;
  }

  body .friends-request,
  body .friend-request,
  body #friends_request,
  body #friends_requests {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: none;
  }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
  body .header button#blockMenu {
    min-width: 92px;
    height: 34px;
    font-size: 13px;
  }

  body .collapsible-menu.user-menu > li > a {
    min-height: 52px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body .collapsible-menu.user-menu > li > a img {
    width: 34px;
    height: 34px;
  }

  body .monitoring-blocks_new .serverNew {
    height: 116px;
  }

  body .serverNew .block-servers-name {
    font-size: 14px;
  }

  body .serverNew .group {
    font-size: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 6.1
   Mobile readability polish (chat + server cards)
   ========================================================= */
@media (max-width: 767.98px) {
  /* Серверные карточки: чуть больше воздуха и безопасный перенос */
  body .monitoring-blocks_new .serverNew {
    padding-right: 8px;
  }

  body .serverNew .block-servers-name {
    right: 16px;
    font-size: 16px;
    line-height: 1.2;
    word-break: break-word;
  }

  body .serverNew .group {
    right: 16px;
    bottom: 18px;
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Чат: меньше визуальной тесноты на мобильном */
  body #chat {
    margin-top: 12px;
  }

  body #chat #chat_messages {
    height: 300px;
    padding-right: 2px;
  }

  body #chat #chat_messages .chat_message {
    padding: 10px 6px;
    border-radius: 10px;
  }

  body #chat #chat_messages .chat_message .message {
    font-size: 13px;
    line-height: 1.4;
  }

  body #chat #message_input {
    min-height: 40px;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body #chat .input-group #send_button {
    min-height: 40px;
    font-size: 15px;
    font-weight: 700;
  }
}

@media (max-width: 399px) {
  body .serverNew .block-servers-name {
    font-size: 14px;
  }

  body .serverNew .group {
    font-size: 12px;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 6.2
   Mobile micro polish (server titles + chat spacing)
   ========================================================= */
@media (max-width: 767.98px) {
  body .serverNew .block-servers-name {
    max-width: calc(100% - 64px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .serverNew .group {
    max-width: calc(100% - 64px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body #chat .input-group {
    margin-top: 6px;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 6.3
   Mobile hard fix (server card text + chat meta row)
   ========================================================= */
@media (max-width: 767.98px) {
  body .monitoring-blocks_new .serverNew {
    height: 130px;
  }

  body .serverNew .block-servers-name {
    top: 14px;
    left: 56px;
    right: 12px;
    max-width: none;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.15;
    font-size: 15px;
  }

  body .serverNew .group {
    left: 56px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.25;
  }

  body #chat #chat_messages .chat_message .message .info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 20px;
  }

  body #chat #chat_messages .chat_message .message .info .date {
    margin-left: auto;
    white-space: nowrap;
    font-size: 12px;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 6.4
   Mobile server cards compact geometry fix
   ========================================================= */
@media (max-width: 767.98px) {
  body .monitoring-blocks_new .serverNew {
    height: 118px;
    padding-right: 0;
  }

  body .serverNew .block-servers-name {
    top: 16px;
    left: 56px;
    right: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.4px;
  }

  body .serverNew .group {
    left: 56px;
    right: 14px;
    bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.25;
  }
}

/* =========================================================
   RR-GAME redesign — Stage 7
   Mobile layout final stabilization
   ========================================================= */

/* Общая страховка от горизонтального скролла */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body * {
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  /* =========================
     Mobile header / user menu
     ========================= */

  body .wapper .header,
  body .header {
    overflow: visible !important;
    z-index: 5000;
  }

  body .header .container {
    width: 100%;
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible !important;
  }

  body .header button#blockMenu {
    flex: 0 0 auto;
    min-width: 104px;
    max-width: 126px;
    height: 36px;
    white-space: nowrap;
  }

  body .collapsible-menu.user-menu {
    width: auto !important;
    max-width: calc(100vw - 148px);
    min-width: 0;
    margin-left: auto;
    flex: 0 1 auto;
    overflow: visible !important;
    z-index: 5100;
  }

  body .collapsible-menu.user-menu > li {
    min-width: 0;
    overflow: visible !important;
  }

  body .collapsible-menu.user-menu > li > a {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }

  body .collapsible-menu.user-menu > li > a img {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px;
    object-fit: cover;
  }

  body .collapsible-menu.user-menu > li > a h3,
  body .collapsible-menu.user-menu > li > a p {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .collapsible-menu.user-menu li ul {
    right: 0 !important;
    left: auto !important;
    z-index: 5200 !important;
    max-width: calc(100vw - 20px);
  }

  /* Очень узкие экраны */
  @media (max-width: 380px) {
    body .header button#blockMenu {
      min-width: 92px;
      max-width: 104px;
      font-size: 13px;
    }

    body .collapsible-menu.user-menu {
      max-width: calc(100vw - 118px);
    }

    body .collapsible-menu.user-menu > li > a {
      padding-left: 8px;
      padding-right: 8px;
      gap: 6px;
    }

    body .collapsible-menu.user-menu > li > a img {
      width: 34px !important;
      height: 34px !important;
      flex-basis: 34px;
    }

    body .collapsible-menu.user-menu > li > a p {
      display: none;
    }

    body .collapsible-menu.user-menu > li > a h3 {
      max-width: 82px;
    }
  }

  /* =========================
     Mobile server cards
     ========================= */

  body .monitoring-blocks_new {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    overflow: visible;
  }

  body .monitoring-blocks_new .serverNew {
    width: 100%;
    height: 126px !important;
    min-height: 126px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border-color: rgba(255, 176, 32, 0.24) !important;
  }

  body .monitoring-blocks_new .serverNew:hover,
  body .monitoring-blocks_new .serverNew:active,
  body .monitoring-blocks_new .serverNew.active {
    transform: none;
    border-color: rgba(255, 176, 32, 0.52) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  }

  body .monitoring-blocks_new .serverNew::before {
    background:
      linear-gradient(90deg, rgba(7, 10, 16, 0.9) 0%, rgba(7, 10, 16, 0.62) 48%, rgba(7, 10, 16, 0.34) 100%),
      radial-gradient(circle at 82% 40%, rgba(255, 176, 32, 0.12), transparent 38%) !important;
  }

  body .serverNew .progress {
    top: 18px;
    left: 16px;
    width: 8px;
    min-height: 88px;
    max-height: 88px;
    border-radius: 999px;
  }

  body .serverNew .block-servers-name {
    top: 16px !important;
    left: 56px !important;
    right: 14px !important;
    max-width: none !important;
    min-width: 0;
    display: -webkit-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px !important;
    line-height: 1.18 !important;
    letter-spacing: 0.45px !important;
  }

  body .serverNew .group {
    left: 56px !important;
    right: 14px !important;
    bottom: 14px !important;
    max-width: none !important;
    min-width: 0;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.28 !important;
  }

  body .serverNew .block-map-img,
  body .serverNew .block-map-img img {
    width: 100%;
    height: 100% !important;
  }

  body .serverNew .block-map-img img {
    object-fit: cover;
  }

  /* Убираем синий актив/hover в боковой навигации серверов */
  body .vertical-navigation ul li.active a,
  body .vertical-navigation ul li a.active,
  body .vertical-navigation ul li a:hover {
    background: rgba(255, 176, 32, 0.12) !important;
    border-left-color: #ffb020 !important;
    color: #ffffff !important;
  }

  /* =========================
     Mobile chat stabilization
     ========================= */

  body #chat {
    max-width: 100%;
    overflow: hidden;
  }

  body #chat #chat_messages {
    height: 310px;
    max-width: 100%;
    padding-right: 2px;
    overflow-x: hidden;
  }

  body #chat #chat_messages .chat_message {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px;
    overflow: hidden;
  }

  body #chat #chat_messages .chat_message > a:first-child {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    max-width: 52px;
    float: none !important;
  }

  body #chat #chat_messages .chat_message > a:first-child img,
  body #chat #chat_messages .chat_message .avatar_c51b4e {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    object-fit: cover;
    border-radius: 12px;
  }

  body #chat #chat_messages .chat_message .message {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    margin-left: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body #chat #chat_messages .chat_message .message .info {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  body #chat #chat_messages .chat_message .message .info .author {
    min-width: 0;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body #chat #chat_messages .chat_message .message .info .date {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
  }

  body #chat #chat_messages .chat_message .message a,
  body #chat #chat_messages .chat_message .with_code,
  body #chat #chat_messages .chat_message [class*="reply"],
  body #chat #chat_messages .chat_message [class*="quote"],
  body #chat #chat_messages .chat_message [class*="pin"] {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body #chat .input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body #chat .input-group .smile_input,
  body #chat .input-group #send_button {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
  }

  body #chat #message_input {
    width: 100%;
    min-height: 42px;
  }

  body #chat .input-group #send_button {
    min-height: 42px;
    border-radius: 10px;
  }
}
