/* =========================================================
   Chat — modern redesign
   ========================================================= */

.pbg_chat_split {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.pbg_chat_split .pbg_online_widget {
  flex: 0 0 300px;
  width: 300px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.pbg_chat_split .pbg_chat {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 991px) {
  .pbg_chat_split {
    flex-direction: column;
  }

  .pbg_chat_split .pbg_online_widget {
    width: 100%;
    flex: 1 1 auto;
  }
}

.pbg_moder_panel_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pbg_chat_banned {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(79, 234, 159, .1);
  border: 1px solid rgba(79, 234, 159, .35);
  margin-top: 14px;
}

.pbg_chat_banned__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
  color: #fff;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #2f7a5a 100%);
}

.pbg_chat_banned__text {
  display: flex;
  flex-direction: column;
  line-height: 17px;
  gap: 1px;
}

.pbg_chat_banned__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #7ef0bd;
}

.pbg_chat_banned__reason,
.pbg_chat_banned__until {
  font-size: 11px;
  color: #d7d9e4;
}

.pbg_chat_pinned {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(79, 234, 159, .1);
  border: 1px solid rgba(79, 234, 159, .3);
  margin-bottom: 10px;
}

.pbg_chat_pinned.disp-n {
  display: none;
}

.pbg_chat_pinned__icon {
  font-size: 16px;
  color: #4fea9f;
  flex: 0 0 auto;
  transform: rotate(20deg);
}

.pbg_chat_pinned__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 16px;
  gap: 1px;
}

.pbg_chat_pinned__login {
  font-size: 11px;
  font-weight: 700;
  color: #4fea9f;
}

.pbg_chat_pinned__text {
  font-size: 12px;
  color: #d7d9e4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbg_chat_pinned__unpin {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #4fea9f;
  cursor: pointer;
  transition: .2s all;
}

.pbg_chat_pinned__unpin:hover {
  background: rgba(79, 234, 159, .18);
  color: #fff;
}

.pbg_chat_rules {
  margin: 0;
  padding-left: 20px;
  color: #d7d9e4;
  font-size: 13px;
  line-height: 22px;
}

.pbg_chat_rules li {
  margin-bottom: 8px;
}

.pbg_chat_rules li::marker {
  color: #4fea9f;
  font-weight: 700;
}

#chat .auth-to-write {
  height: auto;
  margin: 14px 0 18px;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #2b2b36;
  border: 1px solid #383846;
  box-sizing: border-box;
}

#chat .auth-to-write span.d-none {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #9a9ab0;
  font-size: 12.5px;
  font-weight: 600;
}

#chat .auth-to-write .chat_icon {
  position: relative;
  top: 0;
  left: 0;
  margin: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 9px;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: normal;
}

.pbg_chat {
  border-radius: 20px;
  padding: 18px;
  padding-bottom: 0px;
  background: linear-gradient(165deg, #23232d 0%, #2a2a35 100%);
  border: 1px solid #33333f;
  box-shadow: 0 10px 24px rgba(10, 11, 16, 0.35);
  position: relative;
  margin-bottom: 25px;
}

.pbg_chat .heading_block_chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pbg_chat .flex_heading_chat {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pbg_chat .flex_heading_chat i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 19px;
  color: #fff;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%);
  box-shadow: 0 4px 14px rgba(79, 234, 159, .35);
}

.pbg_chat .heading_chat_info {
  display: flex;
  flex-direction: column;
  line-height: 17px;
}

.pbg_chat .heading_chat_info span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pbg_chat .heading_chat_info text {
  font-size: 11px;
  color: #82869c;
  font-weight: 600;
}

.pbg_chat .double_btns_chat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbg_chat_unread {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 50px;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s all;
  box-shadow: 0 4px 12px rgba(79, 234, 159, .35);
  animation: pbgUnreadPop .3s ease;
}

.pbg_chat_unread.is-visible {
  display: inline-flex;
}

.pbg_chat_unread:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 234, 159, .45);
}

.pbg_chat_unread i {
  font-size: 14px;
}

@keyframes pbgUnreadPop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#chat #chat_messages {
  position: relative;
  height: 360px !important;
  scroll-behavior: smooth;
  padding: 4px 6px 4px 2px !important;
}

#chat #chat_messages::-webkit-scrollbar {
  width: 5px;
}

#chat #chat_messages::-webkit-scrollbar-thumb {
  background: #3d3d4c;
  border-radius: 10px;
}

#chat #chat_messages .chat_message,
#chat #messages .chat_message {
  position: relative;
  overflow: visible;
  display: block;
  padding: 0;
  margin-bottom: 10px;
  animation: pbgMsgIn .25s ease;
}

#chat #chat_messages .chat_message .message,
#chat #messages .chat_message .message {
  width: 100%;
  float: none;
  position: relative;
  right: auto;
  font-size: 14px;
  line-height: 18px;
  border-radius: 14px;
  background: #26262f;
  padding: 12px 14px;
  display: block;
  transition: .2s background;
}

#chat #chat_messages .chat_message .message:hover,
#chat #messages .chat_message .message:hover {
  background: #292933;
}

#chat #chat_messages .chat_message .message .info,
#chat #messages .chat_message .message .info {
  display: none;
}

#chat #chat_messages .chat_message > a,
#chat #messages .chat_message > a {
  display: none;
}

#chat #chat_messages .chat_message .message .with_code,
#chat #messages .chat_message .message .with_code {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  width: 100%;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #d7d9e4;
}

#chat #chat_messages .chat_message .message .with_code > .back_img_chat,
#chat #messages .chat_message .message .with_code > .back_img_chat {
  display: block;
  flex: 0 0 auto;
  width: 38px;
}

#chat #chat_messages .chat_message .message .with_code > .back_img_chat img,
#chat #messages .chat_message .message .with_code > .back_img_chat img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

#chat #chat_messages .chat_message .message .with_code .message_global,
#chat #messages .chat_message .message .with_code .message_global {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

#chat .message_global {
  display: block;
  max-width: 100%;
}

#chat .login_share_flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  overflow: visible;
  margin-bottom: 4px;
}

#chat .avatar_login {
  flex: 0 1 auto;
  min-width: 0;
}

#chat .interaction_mess {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
}

#chat .interaction_mess .share_login {
  display: none;
  font-size: 10.5px;
  color: #757587;
  cursor: pointer;
  transition: .2s color;
}

#chat .with_code:hover .interaction_mess .share_login {
  display: inline-flex;
}

#chat .interaction_mess .share_login:hover {
  color: #fff;
}

#chat .chat_date {
  font-size: 10.5px;
  color: #656577;
  white-space: nowrap;
}

#chat .text_chat {
  color: #d7d9e4;
  font-size: 13px;
  line-height: 19px;
  word-break: break-word;
}

#chat .text_chat img.thumbnail-img {
  max-width: 220px;
  width: 100%;
}

@keyframes pbgMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pbg_chat_typing {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 2px 7px 8px;
  padding: 7px 13px;
  width: fit-content;
  border-radius: 50px;
  background: #2b2b36;
  border: 1px solid #383846;
  color: #9a9ab0;
  font-size: 11px;
  font-weight: 600;
  animation: pbgTypingIn .2s ease;
}

.pbg_chat_typing.is-visible {
  display: flex;
}

@keyframes pbgTypingIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pbg_chat_typing__dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pbg_chat_typing__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4fea9f;
  display: block;
  animation: pbgTypingBounce 1.2s infinite ease-in-out;
}

.pbg_chat_typing__dots i:nth-child(2) { animation-delay: .15s; }
.pbg_chat_typing__dots i:nth-child(3) { animation-delay: .3s; }

@keyframes pbgTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ===== Chat message manage (pencil + menu) ===== */

#chat .avatar_login {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pbg_chat_manage {
  cursor: pointer;
  color: #6e748f;
  font-size: 13px;
  transition: .2s all;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.pbg_chat_manage:hover {
  color: #ffffff;
  background: #383846;
}

.pbg_chat_menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 190px;
  background: #2c2c37;
  border: 1px solid #3d3d4d;
  border-radius: 12px;
  padding: 6px;
  z-index: 50;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.pbg_chat_menu.is-visible {
  display: flex;
}

.pbg_chat_menu span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b7bbcf;
  cursor: pointer;
  transition: .15s all;
  white-space: nowrap;
}

.pbg_chat_menu span:hover {
  background: #383846;
  color: #ffffff;
}

.pbg_chat_menu span i {
  font-size: 14px;
}

.pbg_moder_badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 50px;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #2f7a5a 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  box-shadow: 0 2px 8px rgba(79, 234, 159, .4);
  white-space: nowrap;
}

/* ===== Inline message edit (textarea + save/cancel) ===== */

.pbg_chat_edit_box {
  margin-top: 6px;
}

.pbg_chat_edit_box textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  border-radius: 10px;
  background: #1e1e26;
  border: 1px solid #3d3d4d;
  color: #fff;
  font-size: 12.5px;
  padding: 9px 12px;
}

.pbg_chat_edit_box textarea:focus {
  outline: none;
  border-color: #4fea9f;
}

.pbg_chat_edit_actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pbg_chat_edit_save,
.pbg_chat_edit_cancel {
  border: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  transition: .2s all;
}

.pbg_chat_edit_save {
  background: linear-gradient(135deg, #35c07a 0%, #2ea36a 100%);
  color: #fff;
}

.pbg_chat_edit_save:hover {
  box-shadow: 0 4px 12px rgba(53, 192, 122, .4);
  transform: translateY(-1px);
}

.pbg_chat_edit_cancel {
  background: #3a3a47;
  color: #c3c6d6;
}

.pbg_chat_edit_cancel:hover {
  background: #45455470;
  color: #fff;
}

/* ===== Sidebar online widget (solution2 modern) ===== */

.pbg_online_widget {
  border-radius: 15px;
  background: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
  padding: 15px;
  margin-bottom: 20px;
}

.pbg_online_widget__head {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: solid 1px #424251;
  padding-bottom: 12px;
  margin-bottom: 10px;
  position: relative;
}

.pbg_online_widget__head-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 18px;
  color: #808097;
  background: radial-gradient(100% 100% at 50% 0, #5c5c71 0, #3f3f4d 100%);
  text-shadow: #00000075 1px 0 10px;
}

.pbg_online_widget__head-text {
  display: flex;
  flex-direction: column;
  line-height: 15px;
  color: #7a7a90;
  font-size: 11px;
  font-weight: 600;
}

.pbg_online_widget__title {
  font-size: 11.5px;
  color: #ffffff;
}

.pbg_online_widget__subtitle {
  color: #7a7a90;
}

.pbg_online_widget__counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 50px;
  background: #2e2e39;
  border: 1px solid rgba(79, 234, 159, .25);
  white-space: nowrap;
}

.pbg_online_widget__counter b {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #7ef0bd;
}

.pbg_online_widget__live {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #4fea9f;
  box-shadow: 0 0 0 0 rgba(79, 234, 159, .6);
  animation: pbgLivePulse 1.8s infinite;
}

@keyframes pbgLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 234, 159, .55); }
  70% { box-shadow: 0 0 0 7px rgba(79, 234, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 234, 159, 0); }
}

.pbg_online_widget__scroll_wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 60px;
  display: flex;
  flex-direction: column;
}

.pbg_online_widget__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pbg_online_widget__scroll::-webkit-scrollbar {
  width: 4px;
}

.pbg_online_widget__scroll::-webkit-scrollbar-thumb {
  background: #45465a;
  border-radius: 10px;
}

.pbg_online_widget__scroll .users_chat_online {
  border-radius: 12px !important;
  background: #2c2c37 !important;
  border: none !important;
  box-shadow: none !important;
  transition: .2s background;
}

.pbg_online_widget__scroll .users_chat_online:hover {
  background: #34343f !important;
}

.pbg_online_widget__scroll .visit_users_online {
  padding: 7px 10px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pbg_online_widget__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  z-index: 1;
  display: block;
  width: 100%;
  background: linear-gradient(360deg, #363642 20%, #36364200 100%);
  pointer-events: none;
}

.pbg_online_widget__visitors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #383846;
  border-radius: 10px;
  padding: 0px 11px;
  height: 52px;
  margin-top: 6px;
  flex: 0 0 auto;
  transition: .2s all;
  cursor: pointer;
}

.pbg_online_widget__visitors:hover {
  background: #3c3c4b;
}

.pbg_online_widget__visitors-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pbg_online_widget__visitors-info i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 18px;
  color: #7e7e99;
  background: radial-gradient(100% 100% at 50% 0, #535368 0, #515166a6 100%);
  text-shadow: #00000075 1px 0 10px;
}

.pbg_online_widget__count {
  background: #4d4d60;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  color: #7e7e99;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  transition: .2s all;
}

.pbg_online_widget__visitors:hover .pbg_online_widget__count {
  background: #5b5b6e;
  color: #ffffff;
}

@media (max-width: 991px) {
  #chat #chat_messages {
    height: 320px !important;
  }
}

@media (max-width: 575px) {
  .pbg_chat_unread b {
    display: inline;
  }
}

/* ===== Ban box inside chat message menu ===== */

.pbg_chat_ban_box.disp-n {
  display: none;
}

.pbg_chat_ban_box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px 6px;
  border-top: 1px solid #3a3a48;
  margin-top: 4px;
}

.pbg_chat_ban_box label {
  font-size: 10.5px;
  color: #9a9ab0;
  font-weight: 600;
  margin: 0;
}

.pbg_chat_ban_date,
.pbg_chat_ban_reason {
  height: 30px !important;
  min-height: 30px !important;
  padding: 4px 9px !important;
  font-size: 11.5px !important;
  border: 1px solid #3d3d4d !important;
  border-radius: 8px !important;
  background: #1e1e26 !important;
  color: #fff !important;
}

.pbg_chat_ban_date::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .8;
  cursor: pointer;
}

.pbg_chat_ban_actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.pbg_chat_ban_actions .pbg_chat_edit_save,
.pbg_chat_ban_actions .pbg_chat_edit_cancel {
  flex: 1 1 auto;
  padding: 6px 10px;
}

/* =========================================================
   Moderator panel — right-side drawer
   ========================================================= */

body.pbg_moder_panel_open {
  overflow: hidden;
}

.pbg_moder_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, .55);
  z-index: 2000;
  opacity: 0;
  transition: opacity .25s ease;
}

.pbg_moder_overlay.is-visible {
  display: block;
  opacity: 1;
}

.pbg_moder_panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100vw;
  background: linear-gradient(165deg, #23232d 0%, #2a2a35 100%);
  border-left: 1px solid #33333f;
  box-shadow: -12px 0 30px rgba(0,0,0,.4);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}

.pbg_moder_panel.is-open {
  transform: translateX(0);
}

.pbg_moder_panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #33333f;
}

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

.pbg_moder_panel__title i {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  color: #fff;
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #2f7a5a 100%);
  box-shadow: 0 4px 14px rgba(79, 234, 159, .35);
}

.pbg_moder_panel__title-text {
  display: flex;
  flex-direction: column;
  line-height: 17px;
}

.pbg_moder_panel__title-text span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pbg_moder_panel__title-text text {
  font-size: 11px;
  color: #82869c;
  font-weight: 600;
}

.pbg_moder_panel__close {
  border: none;
  background: #2e2e39;
  color: #9a9ab0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: .2s all;
}

.pbg_moder_panel__close:hover {
  background: #383846;
  color: #fff;
}

.pbg_moder_panel__tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #33333f;
  overflow-x: auto;
}

.pbg_moder_tab {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  border: none;
  background: #2b2b36;
  color: #9a9ab0;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s all;
}

.pbg_moder_tab:hover {
  background: #34343f;
  color: #fff;
}

.pbg_moder_tab.is-active {
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%);
  color: #fff;
}

.pbg_moder_panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
}

.pbg_moder_panel__body::-webkit-scrollbar {
  width: 5px;
}

.pbg_moder_panel__body::-webkit-scrollbar-thumb {
  background: #3d3d4c;
  border-radius: 10px;
}

.pbg_moder_tab_panel {
  display: none;
}

.pbg_moder_tab_panel.is-active {
  display: block;
}

.pbg_moder_loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

.pbg_moder_empty {
  text-align: center;
  color: #757587;
  font-size: 12.5px;
  padding: 30px 10px;
}

.pbg_moder_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pbg_moder_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #2b2b36;
  border: 1px solid #33333f;
}

.pbg_moder_row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.pbg_moder_row__info {
  display: flex;
  flex-direction: column;
  line-height: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.pbg_moder_row__login {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbg_moder_row__login:hover {
  color: #4fea9f;
}

.pbg_moder_row__sub {
  font-size: 10.5px;
  color: #82869c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbg_moder_row__action {
  flex: 0 0 auto;
  border: none;
  background: rgba(79, 234, 159, .16);
  color: #7ef0bd;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s all;
}

.pbg_moder_row__action:hover {
  background: rgba(79, 234, 159, .28);
  color: #fff;
}

.pbg_moder_deleted_item {
  padding: 11px 12px;
  border-radius: 12px;
  background: #2b2b36;
  border: 1px solid #33333f;
  margin-bottom: 8px;
}

.pbg_moder_deleted_item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pbg_moder_deleted_item__author {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.pbg_moder_deleted_item__date {
  color: #757587;
  font-size: 10.5px;
}

.pbg_moder_deleted_item__text {
  color: #d7d9e4;
  font-size: 12.5px;
  line-height: 18px;
  word-break: break-word;
  margin-bottom: 6px;
}

.pbg_moder_deleted_item__foot {
  color: #757587;
  font-size: 10.5px;
}

.pbg_moder_rules_edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pbg_moder_rules_edit textarea {
  background: #1e1e26;
  border: 1px solid #3d3d4d;
  border-radius: 12px;
  color: #fff;
  font-size: 12.5px;
  padding: 12px;
  resize: vertical;
}

.pbg_moder_rules_edit textarea:focus {
  outline: none;
  border-color: #4fea9f;
}

.pbg_moder_rules_actions {
  display: flex;
  justify-content: flex-end;
}

.pbg_moder_tab_toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pbg_moder_danger_btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(79, 234, 159, .35);
  background: rgba(79, 234, 159, .12);
  color: #7ef0bd;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s all;
}

.pbg_moder_danger_btn i {
  font-size: 15px;
}

.pbg_moder_danger_btn:hover {
  background: rgba(79, 234, 159, .22);
  border-color: rgba(79, 234, 159, .55);
  color: #fff;
}

@media (max-width: 575px) {
  .pbg_moder_panel {
    width: 100%;
  }

  .pbg_moder_panel__tabs {
    flex-wrap: wrap;
  }

  .pbg_moder_tab {
    flex: 1 1 45%;
  }
}

/* =========================================================
   Visitors panel — right-side drawer, 4-column grid
   ========================================================= */

.pbg_visitors_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, .55);
  z-index: 2000;
  opacity: 0;
  transition: opacity .25s ease;
}

.pbg_visitors_overlay.is-visible {
  display: block;
  opacity: 1;
}

.pbg_visitors_panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 460px;
  max-width: 100vw;
  background: linear-gradient(165deg, #23232d 0%, #2a2a35 100%);
  border-left: 1px solid #33333f;
  box-shadow: -12px 0 30px rgba(0,0,0,.4);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}

.pbg_visitors_panel.is-open {
  transform: translateX(0);
}

.pbg_visitors_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pbg_visitors_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 100px;
  padding: 14px 8px;
  border-radius: 14px;
  background: #2b2b36;
  border: 1px solid #33333f;
  text-decoration: none;
  transition: .2s all;
  box-sizing: border-box;
}

.pbg_visitors_card:hover {
  background: #34343f;
  border-color: #3d3d4d;
  transform: translateY(-2px);
}

.pbg_visitors_card__avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #232330;
  flex: 0 0 auto;
}

.pbg_visitors_card__avatar--icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #82869c;
  background: #232330;
}

.pbg_visitors_card__login {
  font-size: 11.5px;
  font-weight: 700;
  color: #d7d9e4;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbg_visitors_card__login--muted {
  color: #82869c;
  font-weight: 600;
}

.pbg_visitors_card--guest {
  cursor: default;
}

@media (max-width: 575px) {
  .pbg_visitors_panel {
    width: 100%;
  }

  .pbg_visitors_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
