/* ── Overlay ── */
.notif-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.notif-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ── */
.notif-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #1e1e27;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 40px rgba(0,0,0,.6);
}
.notif-drawer.is-open { transform: translateX(0); }
body.notif-drawer-active { overflow: hidden; }

/* ── Header ── */
.notif-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #2c2c38;
  flex-shrink: 0;
}
.notif-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.notif-drawer-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #2c2c38;
  border: none;
  color: #6a6a80;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.notif-drawer-close:hover { background: #38384a; color: #fff; }

/* ── Tabs ── */
.notif-drawer-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid #2c2c38;
}
.notif-tab-btn {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #2e2e3c;
  background: #27272f;
  color: #6a6a80;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  transition: background .18s, color .18s, border-color .18s;
}
.notif-tab-btn:hover { background: #303040; color: #b0b0c0; }
.notif-tab-btn.active {
  background: linear-gradient(135deg, #3dd98a, #28a065);
  border-color: transparent;
  color: #fff;
}
.notif-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: rgba(255,255,255,.22);
  font-size: 9px; font-weight: 800; color: #fff; line-height: 1;
}
.notif-tab-badge:empty { display: none; }

/* ── Body ── */
.notif-drawer-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.notif-tab-panel {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.notif-tab-panel.active { display: flex; }

/* ── Platform list ── */
.notif-platform-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}
.notif-platform-list::-webkit-scrollbar { width: 3px; }
.notif-platform-list::-webkit-scrollbar-thumb { background: #3a3a50; border-radius: 3px; }

.notif-platform-card {
  border-radius: 12px;
  overflow: hidden;
  background: #25252f;
  border: 1px solid #303040;
  transition: border-color .18s;
}
.notif-platform-card:hover { border-color: #404055; }
.notif-platform-card--new {
  border-color: rgba(61,217,138,.3);
  background: #252531;
}
.notif-platform-card--new:hover { border-color: rgba(61,217,138,.5); }

.notif-platform-img {
  width: 100%; max-height: 140px;
  object-fit: cover; display: block;
}
.notif-platform-body { padding: 10px 12px 12px; }
.notif-platform-meta {
  font-size: 10px; color: #4a4a60; font-weight: 600; margin-bottom: 4px;
}
.notif-platform-title {
  font-size: 13px; font-weight: 700; color: #e8e8f0;
  margin-bottom: 4px; line-height: 1.4;
}
.notif-platform-desc {
  font-size: 11.5px; color: #6a6a80; line-height: 1.5; margin-bottom: 8px;
}
.notif-platform-btn {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3dd98a, #28a065);
  color: #fff; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .18s;
}
.notif-platform-btn:hover { opacity: .8; color: #fff; }

/* ── Platform footer ── */
.notif-platform-footer {
  flex-shrink: 0;
  padding: 8px 12px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.notif-platform-read-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: 100%; height: 34px;
  border-radius: 9px;
  background: rgba(61,217,138,.1);
  border: 1px solid rgba(61,217,138,.25);
  color: #3dd98a;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.notif-platform-read-btn:hover {
  background: rgba(61,217,138,.18);
  border-color: rgba(61,217,138,.45);
}

/* ── Loading / Empty ── */
.notif-loading {
  display: flex; align-items: center; justify-content: center;
  height: 120px; color: #3dd98a; font-size: 26px;
}
.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  padding: 40px 20px; flex: 1;
}
.notif-empty i { font-size: 34px; color: #30304a; }
.notif-empty span { font-size: 12px; font-weight: 600; color: #4a4a62; }

/* ── Personal panel ── */
.notif-personal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 0;
}
.notif-personal-scroll::-webkit-scrollbar { width: 3px; }
.notif-personal-scroll::-webkit-scrollbar-thumb { background: #3a3a50; border-radius: 3px; }

.notif-personal-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  border-top: 1px solid #2c2c38;
  margin-top: 6px;
  gap: 8px;
}
.notif-mark-all-btn {
  display: flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border-radius: 7px;
  background: #27272f; border: 1px solid #30303e;
  color: #6a6a80; font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.notif-mark-all-btn:hover { background: #32323e; color: #b0b0c0; }
.notif-all-a {
  font-size: 11.5px; font-weight: 700;
  color: #3dd98a; text-decoration: none;
  transition: opacity .18s; white-space: nowrap;
}
.notif-all-a:hover { opacity: .7; color: #3dd98a; }

/* ── Personal notification items (override old styles inside drawer) ── */
#notif-panel-personal .notif_block_sucess {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #25252f;
  border: 1px solid #2e2e3c;
  transition: border-color .18s;
}
#notif-panel-personal .notif_block_sucess:hover { border-color: #3a3a50; }
#notif-panel-personal .date_not {
  display: none;
}
#notif-panel-personal .flex_notif {
  display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0;
}
#notif-panel-personal .icon_notif {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(61,217,138,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #3dd98a; font-size: 16px;
}
#notif-panel-personal .notification_collapse { flex: 1; min-width: 0; }
#notif-panel-personal .notif_text {
  font-size: 12px; color: #c0c0d0; line-height: 1.5;
  display: block; word-break: break-word;
}
#notif-panel-personal .m-icon.icon-remove {
  flex-shrink: 0; margin-top: 2px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; background: transparent;
  color: #3a3a50; font-size: 12px; cursor: pointer;
  transition: background .18s, color .18s;
}
#notif-panel-personal .m-icon.icon-remove:hover {
  background: rgba(220,60,60,.15); color: #e05555;
}

/* ── Bell button ── */
html body .wapper .header ul.user-menu > li .notif-bell-wrap,
.notif-bell-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: default !important;
  border-radius: 0 !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger,
.notif-bell-trigger {
  position: relative !important;
  width: 36px !important; height: 36px !important;
  min-width: 36px !important; min-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #9090a8 !important;
  font-size: 18px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
  transition: background .18s, color .18s, border-color .18s !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger:hover,
.notif-bell-trigger:hover {
  background: rgba(61,217,138,.1) !important;
  border-color: rgba(61,217,138,.3) !important;
  color: #3dd98a !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger .bx-bell,
.notif-bell-trigger .bx-bell {
  position: static !important;
  font-size: 18px !important;
  color: inherit !important;
  background: none !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.notif-bell-badge {
  position: absolute !important;
  top: -5px !important; right: -5px !important;
  min-width: 16px !important; height: 16px !important;
  width: auto !important;
  padding: 0 4px !important;
  border-radius: 50px !important;
  background: #3dd98a !important;
  color: #0a1a10 !important;
  font-size: 9px !important; font-weight: 800 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border: 2px solid #17171f !important;
  transition: opacity .2s, transform .2s !important;
  transform-origin: top right !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.notif-bell-badge--hidden {
  opacity: 0 !important; transform: scale(0.4) !important; pointer-events: none !important;
}

@media (max-width: 480px) {
  .notif-drawer { width: 100vw; }
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap,
.notif-bell-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: default !important;
  border-radius: 0 !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger,
.notif-bell-trigger {
  position: relative !important;
  width: 36px !important; height: 36px !important;
  min-width: 36px !important; min-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #9090a8 !important;
  font-size: 18px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
  transition: background .18s, color .18s, border-color .18s !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger:hover,
.notif-bell-trigger:hover {
  background: rgba(61,217,138,.1) !important;
  border-color: rgba(61,217,138,.3) !important;
  color: #3dd98a !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger .bx-bell,
.notif-bell-trigger .bx-bell {
  position: static !important;
  font-size: 18px !important;
  color: inherit !important;
  background: none !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.notif-bell-badge {
  position: absolute !important;
  top: -5px !important; right: -5px !important;
  min-width: 16px !important; height: 16px !important;
  width: auto !important;
  padding: 0 4px !important;
  border-radius: 50px !important;
  background: #3dd98a !important;
  color: #0a1a10 !important;
  font-size: 9px !important; font-weight: 800 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border: 2px solid #17171f !important;
  transition: opacity .2s, transform .2s !important;
  transform-origin: top right !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
.notif-bell-badge--hidden {
  opacity: 0 !important; transform: scale(0.4) !important; pointer-events: none !important;
}

@media (max-width: 480px) {
  .notif-drawer { width: 100vw; }
}

html body .wapper .header ul.user-menu > li .promo-btn-wrap,
.promo-btn-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important; height: auto !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important; margin: 0 !important;
  cursor: default !important;
  border-radius: 0 !important;
}

html body .wapper .header ul.user-menu > li .promo-btn-wrap .promo-btn-trigger,
.promo-btn-trigger {
  position: relative !important;
  width: 36px !important; height: 36px !important;
  min-width: 36px !important; min-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #9090a8 !important;
  font-size: 18px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important; margin: 0 !important; line-height: 1 !important;
}
html body .wapper .header ul.user-menu > li .promo-btn-wrap .promo-btn-trigger:hover,
.promo-btn-trigger:hover {
  background: rgba(255,200,0,.14) !important;
  border-color: rgba(255,200,0,.4) !important;
  color: #ffd600 !important;
  box-shadow: 0 0 12px rgba(255,200,0,.18) !important;
}
html body .wapper .header ul.user-menu > li .promo-btn-wrap .promo-btn-trigger .bx,
.promo-btn-trigger .bx {
  position: static !important;
  font-size: 18px !important;
  color: inherit !important;
  background: none !important;
  line-height: 1 !important; margin: 0 !important;
}

.promo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1299;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.promo-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.promo-modal {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 24px);
  background: #0e0e0e;
  border: 1px solid rgba(255,200,0,.12);
  border-radius: 22px;
  box-shadow: 0 32px 96px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  transform: translateY(28px) scale(.95);
  transition: transform .32s cubic-bezier(.34,1.25,.64,1), opacity .28s ease;
  opacity: 0;
}
.promo-modal-overlay.is-open .promo-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.promo-modal-hero {
  position: relative;
  height: 188px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.promo-modal-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/templates/solution2/img/modal-promocode-bg.png');
  background-size: cover;
  background-position: center;
}
.promo-modal-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(20,20,31,.15) 0%, rgb(41 44 41 / 92%) 100%); */
}
.promo-modal-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.promo-modal-present {
  width: 64px; height: 64px;
  filter: drop-shadow(0 4px 18px rgba(255,200,0,.45));
  animation: promoPresentFloat 3s ease-in-out infinite;
}
@keyframes promoPresentFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.promo-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .06em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.promo-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1);
  color: #aaa;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
  backdrop-filter: blur(4px);
}
.promo-modal-close:hover { background: rgba(220,50,50,.5); color: #fff; }

.promo-modal-desc {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  padding: 10px 28px 0;
  line-height: 1.5;
  letter-spacing: .01em;
}

.promo-result {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
  pointer-events: none;
}
.promo-result.is-visible {
  max-height: 160px;
  opacity: 1;
  pointer-events: auto;
}
.promo-result-inner {
  padding: 12px 28px 0;
}
.promo-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
}
.promo-state--ok  { background: rgba(61,217,138,.1); border: 1px solid rgba(61,217,138,.22); }
.promo-state--err { background: rgba(220,53,69,.1);  border: 1px solid rgba(220,53,69,.22);  }
.promo-state-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  animation: promoPopIn .38s cubic-bezier(.34,1.5,.64,1);
}
.promo-state--ok  .promo-state-icon { background: rgba(61,217,138,.18); color: #3dd98a; }
.promo-state--err .promo-state-icon { background: rgba(220,53,69,.18);  color: #e05565; }
.promo-state-text {
  font-size: 13px;
  font-weight: 700;
  color: #c8c8e0;
  line-height: 1.4;
}
@keyframes promoPopIn {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.promo-modal-body {
  padding: 14px 28px 0;
}
.promo-input-wrap {
  display: flex;
  align-items: stretch;
  /* background: #1e1e2e; */
  border: 1.5px solid #50f268;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.promo-input-wrap:focus-within {
  border-color: rgba(255,200,0,.5);
  box-shadow: 0 0 0 3px rgba(255,200,0,.08);
}
.promo-input-wrap.is-shaking {
  animation: promoShake .42s ease;
  border-color: rgba(220,53,69,.55) !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,.08) !important;
}
.promo-input {
  flex: 1;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #e8e8f8 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  font-family: 'Montserrat', monospace !important;
}
.promo-input::placeholder {
  font-weight: 400 !important;
  text-transform: none !important;
  color: #32324e !important;
  letter-spacing: 0 !important;
}
.promo-submit-btn {
  padding: 0 20px;
  background: linear-gradient(135deg, #3dd98a 0%, #3dd98a 100%);
  border: none;
  color: #160e00;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .18s, filter .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.promo-submit-btn:hover { filter: brightness(1.1); }
.promo-submit-btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }

.promo-socials {
  padding: 16px 28px 26px;
  text-align: center;
}
.promo-socials-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.promo-socials-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: #1c1c2e;
  border: 1px solid #28283e;
  color: #42425e;
  font-size: 19px;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.promo-social-btn:hover { transform: translateY(-2px); text-decoration: none; }
.promo-social-btn--discord:hover  { background: rgba(88,101,242,.18); border-color: rgba(88,101,242,.38); color: #7289da; }
.promo-social-btn--telegram:hover { background: rgba(0,136,204,.18);  border-color: rgba(0,136,204,.38);  color: #29b6f6; }
.promo-social-btn--mail:hover     { background: rgba(255,200,0,.12);  border-color: rgba(255,200,0,.3);   color: #ffd600; }

@keyframes promoGlow {
  0%,100% { box-shadow: 0 32px 96px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04); }
  50%     { box-shadow: 0 32px 96px rgba(0,0,0,.85), 0 0 0 4px rgba(61,217,138,.22), 0 0 40px rgba(61,217,138,.12); }
}
.promo-modal.is-success { animation: promoGlow .9s ease; }

@keyframes promoShake {
  0%,100% { transform: translateX(0); }
  18%     { transform: translateX(-7px); }
  36%     { transform: translateX(7px); }
  54%     { transform: translateX(-4px); }
  72%     { transform: translateX(4px); }
}

/* ====================================================================
   Topbar redesign (targeted, additive) — style_pbg_4.css
   Reworks alignment/spacing of the existing topbar markup without
   touching any JS-referenced IDs/classes. Uses new "pbtop-" wrapper
   classes added alongside the originals in home/top.tpl and
   index/top.tpl. Loads after style_pbg_1/2/3 + mob.css, so these
   rules win the cascade without needing broad !important abuse.
   ==================================================================== */

/* ---- Header shell: switch the old float layout to flex ---- */
html body .wapper .header.pbtop {
  height: auto;
  min-height: 80px;
  padding: 0px 0;
  display: flex;
  align-items: center;
}

html body .wapper .header.pbtop .container.pbtop-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 18px;
  flex-wrap: nowrap;
}

/* ---- Logo ---- */
html body .wapper .header.pbtop .header-logo.pbtop-logo {
  float: none;
  position: static;
  top: auto;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* ---- Quicknav (МАГАЗИН / БАН ЛИСТ / КЕЙСЫ / PASS / Маркет) ---- */
html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav {
  float: none;
  position: static;
  top: auto;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav .hqn-btn {
  flex: 0 0 auto;
}

/* ---- User menu row (right side): balance + icon buttons + avatar ---- */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
  display: flex;
  align-items: center;
  float: none;
  margin: 0;
  height: auto;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li {
  margin: 0;
  display: flex;
  align-items: center;
}

/* ---- Balance pill ---- */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance {
  position: static;
  top: auto;
  margin: 0;
  padding: 0 6px 0 40px;
  height: 38px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 234, 159, 0.1);
  border: 1px solid rgba(79, 234, 159, 0.28);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #eafff3;
  white-space: nowrap;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 32px;
  height: 32px;
  margin: 0;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  box-shadow: 0 0 12px rgba(79, 234, 159, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #08150f;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance a.pursee-button {
  position: static;
  height: 28px;
  width: auto;
  margin: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #4fea9f, #28a065);
  color: #08150f;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: filter .18s, transform .15s;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance a.pursee-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #08150f;
  text-decoration: none;
}

/* ---- Unified round icon buttons: message / complaint / ban / ticket ---- */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li {
  margin: 0;
  position: relative;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a,
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a.pbtop-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #9090a8;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .18s, color .18s, border-color .18s;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a:hover,
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a.pbtop-icon-btn:hover {
  background: rgba(61,217,138,.1);
  border-color: rgba(61,217,138,.3);
  color: #3dd98a;
  text-decoration: none;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a i {
  position: static;
  top: auto;
  padding: 0;
  margin: 0;
  font-size: 18px;
  color: inherit;
}

/* badge counters on complaint/ban/ticket icon buttons */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li > a span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: #ff5c5c;
  color: #2a0a0a;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #17171f;
  line-height: 1;
}

/* promo + notif bell wraps already sit at 36px via their own rules
   above; keep them visually flush with the rest of the icon row */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li .promo-btn-wrap,
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li .notif-bell-wrap {
  margin: 0;
}

/* ---- Avatar / profile trigger ---- */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.collapsible.pbtop-profile-li {
  width: auto;
  margin: 0 0 0 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.08);
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.collapsible.pbtop-profile-li > a {
  height: auto;
  width: auto;
  display: flex;
  align-items: center;
}

/* render_user_avatar() locks the .pb-avatar-header-wrap geometry to a
   40x40 box with 10px corner radius via inline !important styles that
   no external CSS can override (inline style + !important always wins
   the cascade). So this trigger must match that exact box instead of
   forcing its own 38px/50% circle on top of it — that mismatch is what
   made the avatar look clipped/lopsided. */
html body .wapper .header.pbtop .blockprofile.pbtop-avatar-btn {
  width: 40px;
  height: 40px;
  top: 0;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 234, 159, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 234, 159, 0.06);
  transition: border-color .18s, box-shadow .18s;
}

html body .wapper .header.pbtop .blockprofile.pbtop-avatar-btn:hover {
  opacity: 1;
  border-color: rgba(79, 234, 159, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 234, 159, 0.12);
}

/* chevron that used to float loosely next to the avatar */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > i.bx-chevron-down {
  display: flex;
  align-items: center;
  color: #6a6a80;
  font-size: 15px;
  margin-left: 2px;
}

/* ---- Responsive: collapse to the mob.css breakpoint ---- */
@media (max-width: 991.99px) {
  html body .wapper .header.pbtop .container.pbtop-row {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
    margin-left: auto;
  }
  html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance a.pursee-button span,
  html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.balance.pbtop-balance a.pursee-button {
    padding: 0 10px;
  }
}

/* ---- Logged-out variant (index/top.tpl): auth buttons row ---- */
html body .wapper .header.pbtop .pbtop-auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Вход / Регистрация — modern shifting-gradient CTA in place of the
   old bare Bootstrap .btn.btn-primary with inline styles */
html body .wapper .header.pbtop .pbtop-auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
html body .wapper .header.pbtop .pbtop-auth-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
html body .wapper .header.pbtop .pbtop-auth-btn i {
  font-size: 17px;
  line-height: 1;
}

/* primary: animated multi-stop gradient that slowly drifts, like the
   "AI product" shimmer look, capped with a soft green glow */
html body .wapper .header.pbtop .pbtop-auth-btn--primary {
  color: #08150f;
  background: linear-gradient(115deg, #4fea9f, #28a065, #3dd98a, #4fea9f);
  background-size: 300% 100%;
  animation: pbtopAuthShift 6s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(61,217,138,.3);
}
html body .wapper .header.pbtop .pbtop-auth-btn--primary:hover {
  box-shadow: 0 6px 22px rgba(61,217,138,.42);
}
html body .wapper .header.pbtop .pbtop-auth-btn__shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: pbtopAuthShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pbtopAuthShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes pbtopAuthShine {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* secondary (Регистрация): quiet glass pill, distinct from the CTA */
html body .wapper .header.pbtop .pbtop-auth-btn--ghost {
  color: #d4d4de;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
html body .wapper .header.pbtop .pbtop-auth-btn--ghost:hover {
  color: #eafff3;
  background: rgba(61,217,138,.1);
  border-color: rgba(61,217,138,.3);
}

@media (prefers-reduced-motion: reduce) {
  html body .wapper .header.pbtop .pbtop-auth-btn--primary,
  html body .wapper .header.pbtop .pbtop-auth-btn__shine {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  html body .wapper .header.pbtop .pbtop-auth-btn {
    padding: 0 14px;
    font-size: 12px;
  }
  html body .wapper .header.pbtop .pbtop-auth-btn--ghost span {
    display: none;
  }
}

/* ====================================================================
   Notification bell + drawer — visual refresh (neon/glass, matches
   the logotext glow + PASS accent green used across the topbar)
   ==================================================================== */

/* bell trigger: soften into a glassy circular button, add a subtle
   glow on hover/active to echo the logo's neon look */
html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger,
.notif-bell-trigger {
  border-radius: 50% !important;
  background: rgba(255,255,255,.05) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06) !important;
}

html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger:hover,
.notif-bell-trigger:hover {
  background: rgba(61,217,138,.12) !important;
  box-shadow: inset 0 0 0 1px rgba(61,217,138,.35), 0 0 14px rgba(61,217,138,.25) !important;
}

.notif-drawer.is-open .notif-bell-trigger,
.notif-bell-wrap.pbtop-bell-active .notif-bell-trigger {
  background: rgba(61,217,138,.16) !important;
  color: #3dd98a !important;
  box-shadow: inset 0 0 0 1px rgba(61,217,138,.45), 0 0 14px rgba(61,217,138,.3) !important;
}

/* badge: crisper ring + soft glow instead of the flat dot */
.notif-bell-badge {
  box-shadow: 0 0 8px rgba(61,217,138,.55) !important;
}

/* drawer shell: slightly deeper panel with a soft green-tinted edge
   and blur, closer to the promo modal's glass aesthetic */
.notif-drawer {
  background: #16161e;
  border-left: 1px solid rgba(79,234,159,.14);
  box-shadow: -10px 0 50px rgba(0,0,0,.65), 0 0 40px rgba(79,234,159,.04) inset;
}

.notif-drawer-header {
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(79,234,159,.07), transparent);
  border-bottom-color: rgba(255,255,255,.06);
}

.notif-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-drawer-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd98a;
  box-shadow: 0 0 8px rgba(61,217,138,.8);
  display: inline-block;
}

.notif-drawer-close {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.notif-drawer-close:hover {
  background: rgba(220,53,69,.18);
  color: #ff8080;
}

/* tabs: quieter idle state, cleaner active pill */
.notif-drawer-tabs {
  border-bottom-color: rgba(255,255,255,.06);
}
.notif-tab-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.07);
  letter-spacing: .06em;
}
.notif-tab-btn:hover {
  background: rgba(255,255,255,.07);
}
.notif-tab-btn.active {
  background: linear-gradient(135deg, #4fea9f, #28a065);
  box-shadow: 0 4px 14px rgba(61,217,138,.25);
}

/* platform + personal list cards: match the icon-button glass look */
.notif-platform-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
  border-radius: 14px;
}
.notif-platform-card:hover {
  border-color: rgba(79,234,159,.3);
}
.notif-platform-card--new {
  background: rgba(79,234,159,.05);
  border-color: rgba(79,234,159,.28);
}

#notif-panel-personal .notif_block_sucess {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
  border-radius: 12px;
}
#notif-panel-personal .notif_block_sucess:hover {
  border-color: rgba(79,234,159,.25);
}
#notif-panel-personal .icon_notif {
  background: rgba(61,217,138,.14);
  border-radius: 50%;
}

.notif-platform-read-btn,
.notif-mark-all-btn {
  border-radius: 50px;
}

.notif-all-a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ====================================================================
   Profile drawer — slide-out from the right, sibling pattern to the
   notification drawer above. Independent DOM/ids (#profile-drawer,
   #profile-drawer-overlay, #profile-drawer-close, #profile-avatar-btn),
   same dark-glass / neon-green visual language.
   ==================================================================== */

/* ---- Overlay + shell (base structure notifications.css already
   provides for .notif-drawer; profile-drawer needs its own since it
   has no external base stylesheet) ---- */
.profile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.profile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.profile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #16161e;
  border-left: 1px solid rgba(79,234,159,.14);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 50px rgba(0,0,0,.65), 0 0 40px rgba(79,234,159,.04) inset;
}
.profile-drawer.is-open { transform: translateX(0); }
body.profile-drawer-active { overflow: hidden; }

@media (max-width: 480px) {
  .profile-drawer { width: 100vw; }
}

/* ---- Header ---- */
.profile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(79,234,159,.07), transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.profile-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-drawer-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd98a;
  box-shadow: 0 0 8px rgba(61,217,138,.8);
  display: inline-block;
}

.profile-drawer-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #6a6a80;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.profile-drawer-close:hover {
  background: rgba(220,53,69,.18);
  color: #ff8080;
}

/* ---- Body ---- */
.profile-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- 1. User block: avatar + login + group ---- */
.profile-drawer-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  color: inherit;
  transition: background .18s, border-color .18s;
}

a.profile-drawer-user:hover {
  background: rgba(61,217,138,.08);
  border-color: rgba(61,217,138,.28);
  text-decoration: none;
  color: inherit;
}

.profile-drawer-user .pb-avatar-drawer-wrap {
  flex: 0 0 auto;
}

.profile-drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-drawer-login {
  font-size: 15px;
  font-weight: 700;
  color: #eafff3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-drawer-group {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.profile-drawer-user-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(61,217,138,.12);
  border: 1px solid rgba(61,217,138,.32);
  color: #7cf5b6;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-drawer-user-cta i {
  font-size: 14px;
}

@media(max-width: 380px) {
  .profile-drawer-user-cta span { display: none; }
  .profile-drawer-user-cta { padding: 8px; }
}

/* ---- 2 & 4. Button grid, 2 per row ---- */
.profile-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-drawer-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  color: #d4d4de;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  line-height: 1.25;
  transition: background .18s, border-color .18s, transform .15s;
}

.profile-drawer-btn:hover {
  background: rgba(61,217,138,.1);
  border-color: rgba(61,217,138,.3);
  color: #eafff3;
  text-decoration: none;
  transform: translateY(-1px);
}

.profile-drawer-btn-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ---- 4. Featured cards: Кейсы / Награды за активность ---- */
.profile-drawer-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-drawer-feature-btn {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92px;
  padding: 12px 68px 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.28;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  transition: transform .15s, box-shadow .18s, filter .18s;
}

.profile-drawer-feature-btn:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.profile-drawer-feature-btn--cases {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #d9660b 0%, #7a2e04 100%);
  box-shadow: 0 8px 18px rgba(154,63,7,.32);
}

.profile-drawer-feature-btn--rewards {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #1f7a8c 0%, #123b52 100%);
  box-shadow: 0 8px 18px rgba(18,59,82,.32);
}

.profile-drawer-feature-btn--dailycards {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #1e7a4a 0%, #0f4527 100%);
  box-shadow: 0 8px 18px rgba(15,69,39,.32);
}

.profile-drawer-feature-label {
  position: relative;
  z-index: 1;
}

.profile-drawer-feature-icon {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 128px;
  height: 84px;
  object-fit: contain;
  transform: translateY(-50%) rotate(8deg);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
}

.profile-drawer-feature-icon--gift {
  right: 8px;
  width: 64px;
  height: 64px;
  transform: translateY(-50%) rotate(0deg);
}

@media(max-width: 380px) {
  .profile-drawer-feature-grid { grid-template-columns: 1fr; }
}

/* ---- 3. Balance + Мои привилегии, side by side, two distinct looks ---- */
.profile-drawer-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-drawer-duo-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  transition: filter .18s, transform .15s, box-shadow .18s;
}

.profile-drawer-duo-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-drawer-duo-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.profile-drawer-duo-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-drawer-duo-sub {
  font-size: 10.5px;
  font-weight: 600;
  opacity: .8;
  line-height: 1.3;
}

/* balance: dark glass card with a green accent — simpler, matches the
   rest of the drawer instead of a loud solid-fill CTA */
.profile-drawer-duo-btn--balance {
  background: linear-gradient(135deg, rgba(61,217,138,.1), rgba(40,160,101,.04));
  border: 1px solid rgba(61,217,138,.26);
  color: #eafff3;
}
.profile-drawer-duo-btn--balance:hover {
  background: linear-gradient(135deg, rgba(61,217,138,.18), rgba(40,160,101,.08));
  border-color: rgba(61,217,138,.45);
  color: #fff;
}
.profile-drawer-duo-btn--balance .profile-drawer-duo-icon {
  background: radial-gradient(100% 100% at 50% 0, #4fea9f 0, #1e6b46 100%);
  box-shadow: 0 0 10px rgba(61,217,138,.35);
  color: #08150f;
}
.profile-drawer-duo-btn--balance .profile-drawer-duo-title {
  color: #eafff3;
}
.profile-drawer-duo-btn--balance .profile-drawer-duo-sub {
  color: #8fd9b6;
}

/* privileges: dark glass card with a gold accent, distinct from balance */
.profile-drawer-duo-btn--privileges {
  background: linear-gradient(135deg, rgba(255,200,0,.1), rgba(255,153,0,.04));
  border: 1px solid rgba(255,200,0,.26);
  color: #f0e6c8;
}
.profile-drawer-duo-btn--privileges:hover {
  background: linear-gradient(135deg, rgba(255,200,0,.18), rgba(255,153,0,.08));
  border-color: rgba(255,200,0,.45);
  color: #fff;
}
.profile-drawer-duo-btn--privileges .profile-drawer-duo-icon {
  background: radial-gradient(100% 100% at 50% 0, #ffd600 0, #a86a00 100%);
  box-shadow: 0 0 10px rgba(255,200,0,.35);
  color: #2a1c00;
}
.profile-drawer-duo-btn--privileges .profile-drawer-duo-title {
  color: #fff2d0;
}
.profile-drawer-duo-btn--privileges .profile-drawer-duo-sub {
  color: #b8a878;
}

/* ---- 5. Footer: admin center + logout ---- */
.profile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.profile-drawer-admin-btn,
.profile-drawer-exit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s, border-color .18s, color .18s;
}

.profile-drawer-admin-btn {
  background: rgba(79,234,159,.08);
  border: 1px solid rgba(79,234,159,.25);
  color: #3dd98a;
}
.profile-drawer-admin-btn:hover {
  background: rgba(79,234,159,.16);
  border-color: rgba(79,234,159,.45);
  color: #4fea9f;
  text-decoration: none;
}
.profile-drawer-admin-btn i {
  font-size: 18px;
}

.profile-drawer-exit-btn {
  background: rgba(255,92,92,.08);
  border: 1px solid rgba(255,92,92,.22);
  color: #ff8080;
}
.profile-drawer-exit-btn:hover {
  background: rgba(255,92,92,.16);
  border-color: rgba(255,92,92,.4);
  color: #ffa0a0;
  text-decoration: none;
}
.profile-drawer-exit-btn i {
  font-size: 18px;
}

/* ---- Avatar trigger in the topbar: reuse the same hover glow as the
   notif bell so avatar / bell / promo read as one consistent icon row ---- */
html body .wapper .header.pbtop .blockprofile.pbtop-avatar-btn {
  cursor: pointer;
}

.profile-drawer.is-open ~ .profile-drawer-overlay,
html body .wapper .header.pbtop .blockprofile.pbtop-avatar-btn:active {
  border-color: rgba(79, 234, 159, 0.7);
}

/* ====================================================================
   Adaptive logo + menu — narrow-width hardening on top of mob.css'
   single 991.99px breakpoint, so the logo and hamburger stay usable
   down to very small phone widths.
   ==================================================================== */
@media (max-width: 575.98px) {
  html body .wapper .header.pbtop .header-logo.pbtop-logo .site_logo_neo svg {
    width: 140px;
    height: 32px;
  }
  html body .wapper .header.pbtop .header-logo.pbtop-logo .logotext {
    font-size: 1.7em;
  }
  html body .wapper .header.pbtop .container.pbtop-row {
    gap: 10px;
  }
  html body .wapper .button_menu_collapse {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin-right: 0;
  }
}

@media (max-width: 380px) {
  html body .wapper .header.pbtop .header-logo.pbtop-logo .site_logo_neo svg {
    width: 112px;
    height: 28px;
  }
  html body .wapper .header.pbtop .header-logo.pbtop-logo .logotext {
    font-size: 1.4em;
  }
  html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
    gap: 6px;
  }
}

/* header-menu (#hidden-menu) dropdown: mob.css pins it to a fixed
   300px/-12px box once <991.99px, which overflows/clips on narrow
   phones. Widen it to the viewport instead, but only once the fixed
   300px box no longer fits comfortably. */
@media (max-width: 340px) {
  html body .wapper .header-menu#hidden-menu {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: 100vw;
    width: calc(100vw - 20px);
    margin: 0 10px;
  }
  html body .wapper .header-menu#hidden-menu .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ====================================================================
   Quicknav overflow fix — buttons were rigid (flex: 0 0 auto) inside a
   shrinking container (flex: 1 1 auto; min-width: 0), so at widths
   where the row ran out of room the buttons collided/overlapped
   instead of shrinking or wrapping cleanly. Let them shrink gracefully
   and, if the row still can't fit, scroll horizontally instead of
   breaking the layout.
   ==================================================================== */
html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* padding-bottom: 2px; */
}
html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav::-webkit-scrollbar {
  display: none;
}
html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav .hqn-btn {
  flex: 0 0 auto;
}

@media (max-width: 1300px) {
  html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav .hqn-btn span {
    display: none;
  }
  html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav .hqn-btn {
    padding: 0 9px;
  }
}

/* On mobile the quicknav (МАГАЗИН/БАН ЛИСТ/КЕЙСЫ/PASS/Маркет) shrank
   into a cramped unlabeled icon row that duplicated the hamburger
   menu's job. style_pbg_1.css already hides it at 767px, but the
   earlier "targeted redesign" rule above (higher specificity, flex
   display) unintentionally overrode that. Restore the hide and let
   the user-menu (promo/bell/avatar) take the full row width. */
@media (max-width: 767px) {
  html body .wapper .header.pbtop .header-quicknav.pbtop-quicknav {
    display: none;
  }
  /* without the quicknav's flex:1 1 auto in between, logo + user-menu
     (both flex: 0 0 auto) would collapse together on the left; push
     the user-menu to the right explicitly */
  html body .wapper .header.pbtop .container.pbtop-row {
    justify-content: space-between;
  }
}

/* ====================================================================
   Promo / notifications: text labels on desktop, colour-coded pulse
   animation on mobile.
   ==================================================================== */
.pbtop-icon-label {
  display: none;
}

@media (min-width: 992px) {
  html body .wapper .header ul.user-menu > li .promo-btn-wrap .promo-btn-trigger,
  .pbtop-icon-li--promo .promo-btn-trigger {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 14px 0 12px !important;
    gap: 7px;
    border-radius: 50px !important;
  }
  html body .wapper .header ul.user-menu > li .notif-bell-wrap .notif-bell-trigger,
  .pbtop-icon-li--notif .notif-bell-trigger {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 14px 0 12px !important;
    gap: 7px;
    border-radius: 50px !important;
  }
  .pbtop-icon-li--promo .pbtop-icon-label,
  .pbtop-icon-li--notif .pbtop-icon-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    color: inherit;
  }
  .pbtop-icon-li--notif .notif-bell-badge {
    position: static !important;
    border: none !important;
    margin-left: 2px !important;
  }
}

/* ---- Mobile: distinct accent colours + subtle pulse ---- */
@media (max-width: 767px) {
  .pbtop-icon-li--promo .promo-btn-trigger {
    background: rgba(255,200,0,.12) !important;
    border-color: rgba(255,200,0,.35) !important;
    color: #ffd600 !important;
    animation: pbtopPromoPulse 2.6s ease-in-out infinite;
  }
  .pbtop-icon-li--notif .notif-bell-trigger {
    background: rgba(61,217,138,.12) !important;
    border-color: rgba(61,217,138,.35) !important;
    color: #3dd98a !important;
  }
  .pbtop-icon-li--notif .notif-bell-wrap:has(.notif-bell-badge:not(.notif-bell-badge--hidden)) .notif-bell-trigger {
    animation: pbtopBellPulse 1.8s ease-in-out infinite;
  }
}

@keyframes pbtopPromoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,0,.35); }
  50% { box-shadow: 0 0 0 6px rgba(255,200,0,0); }
}

@keyframes pbtopBellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,217,138,.4); }
  50% { box-shadow: 0 0 0 7px rgba(61,217,138,0); }
}

@media (prefers-reduced-motion: reduce) {
  .pbtop-icon-li--promo .promo-btn-trigger,
  .pbtop-icon-li--notif .notif-bell-wrap .notif-bell-trigger {
    animation: none !important;
  }
}

/* ====================================================================
   Fix: avatar trigger box mismatch (was clipped/lopsided) — see the
   .blockprofile.pbtop-avatar-btn rule above, now 40x40 / 12px radius
   to exactly match render_user_avatar()'s locked inline geometry for
   .pb-avatar-header-wrap. No new rule needed here, this comment just
   documents the fix for future edits to this file.
   ==================================================================== */

/* "Мои привилегии" is now rendered as one of the .profile-drawer-duo-btn
   pair above (see .profile-drawer-duo-btn--privileges), so the standalone
   full-width card styles that used to live here have been removed. */

@media(max-width: 380px) {
  .profile-drawer-duo { grid-template-columns: 1fr; }
}

/* ====================================================================
   "Режим ускорения" (perf mode) — user-facing toggle in the profile
   drawer. Deliberately does ONLY one thing: stops animated avatar
   frame GIF/APNG playback. An earlier version also tried to kill all
   page-wide CSS animations/transitions via a blanket selector — that
   broke unrelated features (Market items that appear via an
   opacity/transition never showed up), so that part was removed
   entirely. The frame stop itself is handled in JS (see the
   pbtop_perf_mode_toggle script in home/top.tpl): it removes the
   frame <img>'s src attribute, since GIF/APNG frame playback is
   native browser raster animation that no CSS rule can pause. This
   CSS only styles the toggle switch UI itself.
   ==================================================================== */

/* Market lock message — full-viewport fixed overlay (independent of
   .pb-market-layout's own positioning/size) shown when perf mode is
   on, since Market item cards depend on animation/transition to
   render and are not safe to leave running under a blurred/disabled
   page. See the market-lock script in home/top.tpl. */
.pbtop-market-perf-lock {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10,10,16,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.pbtop-market-perf-lock-box {
  max-width: 360px;
  width: 100%;
  text-align: center;
  padding: 28px 24px;
  border-radius: 18px;
  background: #16161e;
  border: 1px solid rgba(79,234,159,.2);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.pbtop-market-perf-lock-box i {
  font-size: 34px;
  color: #3dd98a;
  margin-bottom: 12px;
  display: inline-block;
}
.pbtop-market-perf-lock-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.pbtop-market-perf-lock-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: #9090a8;
  line-height: 1.5;
}

/* ---- Perf mode toggle row inside the profile drawer ---- */
/* this is a <label>, so it inherits the same global, unscoped
   `label{position:absolute;top:20px;...}` rule from style_pbg_3.css
   documented above near .auth-check — reset position explicitly here
   too, otherwise the row gets yanked out of the drawer's flow. */
.profile-drawer-perf-row {
  position: static !important;
  top: auto !important;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.profile-drawer-perf-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(61,217,138,.12);
  color: #3dd98a;
}
.profile-drawer-perf-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-drawer-perf-title {
  font-size: 13px;
  font-weight: 700;
  color: #eafff3;
}
.profile-drawer-perf-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #8a8a9c;
  line-height: 1.3;
}
.profile-drawer-perf-switch {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.profile-drawer-perf-switch input {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.profile-drawer-perf-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .2s ease, border-color .2s ease;
}
.profile-drawer-perf-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #8d8da3;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.4,0,.2,1), background .2s ease;
}
.profile-drawer-perf-switch input:checked ~ .profile-drawer-perf-switch__track {
  background: rgba(40,201,130,.28);
  border-color: rgba(40,201,130,.55);
}
.profile-drawer-perf-switch input:checked ~ .profile-drawer-perf-switch__track .profile-drawer-perf-switch__thumb {
  transform: translateX(17px);
  background: #28c982;
  box-shadow: 0 0 8px rgba(40,201,130,.55);
}
.profile-drawer-perf-switch input:focus-visible ~ .profile-drawer-perf-switch__track {
  box-shadow: 0 0 0 3px rgba(40,201,130,.22);
}

/* ============================================================
   Profile page (home/profile.tpl) — moved from inline <style>
   ============================================================ */
  :root {
    --pbpf-green: #4fea9f;
    --pbpf-green-2: #22b877;
    /* Solution2 palette (strict) */
    --pbpf-panel: linear-gradient(1deg, #212129 30%, #292932 100%);
    --pbpf-inner: linear-gradient(359deg, #2e2e39 30%, #363642 100%);
    --pbpf-shadow: 0px 5px 10px #13151a4f;
    --pbpf-border: rgba(255,255,255,.06);
    --pbpf-radius: 18px;
  }

  /* ---- Hero cover: compact, avatar + name centered ---- */
  .profile_block { margin-bottom: 34px; }

  .left_profile {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    border-radius: 22px !important;
    border: 1px solid var(--pbpf-border);
    box-shadow: var(--pbpf-shadow);
    padding: 26px 24px 22px !important;   /* compact height */
    min-height: 0 !important;
  }
  .left_profile .profile-bg-overlay {
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(12,14,22,.35), rgba(12,14,22,.72) 70%),
      linear-gradient(180deg, rgba(10,12,18,.2) 0%, rgba(12,14,22,.8) 100%) !important;
  }
  /* thin brand line along the top of the cover */
  .left_profile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, rgba(79,234,159,0), rgba(79,234,159,.75) 50%, rgba(79,234,159,0));
    opacity: .6;
    pointer-events: none;
  }

  /* Left group (avatar + name): stacked & centered */
  .left_profile .prof_l {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    z-index: 2;
  }
  .left_profile .flex_user_info {
    align-items: center !important;
    text-align: center;
  }

  /* Buttons group pinned to the top-right corner of the cover */
  .left_profile .prof_r {
    position: absolute !important;
    top: 20px;
    right: 22px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
  }
  .left_profile .prof_r .prof_r_top { align-items: center; }
  .left_profile .prof_r .container-buttons { margin: 0 !important; }

  /* teams / contacts row under the name — centered, no divider */
  .left_profile .flex_contacts_btn {
    justify-content: center !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 12px !important;
    z-index: 2;
  }

  /* Shrink the avatar shell so the cover stays low */
  .left_profile .pb-steam-avatar-shell {
    width: 128px !important;
    height: 128px !important;
    min-width: 128px !important;
    min-height: 128px !important;
  }
  html body .left_profile .pb-avatar-profile-main-wrap > img.avatar_profile {
    width: 108px !important;
    height: 108px !important;
  }

  /* Username: gradient premium text */
  .profile_top .username,
  .left_profile .username {
    font-family: "Unbounded", sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: -.01em;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.55));
    margin-top: 2px;
  }

  /* ID / copy chip — glassy */
  .copy_link {
    background: rgba(20,22,30,.5) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px !important;
    height: 42px !important;
    transition: border-color .25s ease, background .25s ease;
  }
  .copy_link:hover { border-color: rgba(79,234,159,.4) !important; }
  .copyref, .copy_link button {
    background: transparent; border: 0; color: #9af0c5; cursor: pointer;
    transition: transform .2s ease, color .2s ease;
  }
  .copyref:hover { color: #fff; transform: scale(1.12); }

  /* Top-right cover buttons: exit / block */
  .prof_r_top > a,
  .razblock, .zablock {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(20,22,30,.5);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #c9cbd6; font-size: 18px;
    transition: .22s ease;
  }
  .prof_r_top > a:hover { border-color: rgba(79,234,159,.4); color: #fff; }
  .zablock:hover { border-color: rgba(255,90,90,.5); color: #ff7a7a; }
  .razblock { color: #9af0c5; }

  /* Action buttons */
  html body .profile-settingss {
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(45,132,92,.4);
    min-height: 42px !important;
    padding: 0 22px !important;
    font-size: 12px !important;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
  html body .profile-settingss:hover {
    transform: translateY(-2px); filter: brightness(1.06);
    box-shadow: 0 16px 32px rgba(45,132,92,.52);
  }
  html body .profile-button,
  html body .profile-button-mess {
    min-height: 42px !important;
    background: rgba(20,22,30,.55) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #d7d9e4 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: .22s ease;
  }
  html body .profile-button:hover,
  html body .profile-button-mess:hover {
    border-color: rgba(79,234,159,.42) !important;
    color: #fff !important;
    transform: translateY(-2px);
  }

  .activity_name {
    background: var(--pbpf-inner) !important;
    border: 1px solid var(--pbpf-border);
    border-radius: 12px !important;
    box-shadow: var(--pbpf-shadow);
  }
  .btn_admin_menu {
    background: rgba(255,120,90,.14) !important;
    border: 1px solid rgba(255,120,90,.34);
    color: #ff9c86 !important;
    transition: .22s ease;
  }
  .btn_admin_menu:hover { transform: translateY(-2px); border-color: rgba(255,120,90,.6); }

  /* ---- Tabs ---- */
  .pb-profile-tabs {
    background: var(--pbpf-panel) !important;
    border: 1px solid var(--pbpf-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--pbpf-shadow);
    padding: 5px 8px !important;
    min-height: 54px !important;
    gap: 4px !important;
  }
  .pb-profile-tab {
    border-radius: 12px;
    padding: 0 16px !important;
    min-height: 44px !important;
    transition: color .18s ease, background .18s ease !important;
  }
  .pb-profile-tab:hover { background: rgba(255,255,255,.05); }
  .pb-profile-tab.active {
    background: rgba(79,234,159,.14);
    color: #b8ffe0 !important;
  }
  .pb-profile-tab.active::after {
    left: 14px; right: 14px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--pbpf-green), var(--pbpf-green-2)) !important;
    box-shadow: 0 0 12px rgba(79,234,159,.6);
  }

  /* ---- Info panel & cards ---- */
  .pb-profile-info-panel {
    background: var(--pbpf-panel) !important;
    border: 1px solid var(--pbpf-border) !important;
    border-radius: var(--pbpf-radius) !important;
    box-shadow: var(--pbpf-shadow);
    padding: 16px !important;
  }
  .pb-profile-info-grid { gap: 12px !important; }

  .pb-profile-info-item {
    position: relative;
    min-height: 62px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    background: var(--pbpf-inner) !important;
    border: 1px solid rgba(255,255,255,.05) !important;
    grid-template-columns: 40px minmax(0,1fr) !important;
    column-gap: 13px !important;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
  .pb-profile-info-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--pbpf-green), var(--pbpf-green-2));
    opacity: 0; transition: opacity .22s ease;
  }
  .pb-profile-info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(79,234,159,.28) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.3);
  }
  .pb-profile-info-item:hover::before { opacity: 1; }

  .pb-profile-info-item i {
    width: 40px !important; height: 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(91,233,163,.22), rgba(34,184,119,.14)) !important;
    color: var(--pbpf-green) !important;
    font-size: 19px !important;
  }
  .pb-profile-info-item span { font-size: 11px !important; color: #8f91a0 !important; }
  .pb-profile-info-item strong { font-size: 14px !important; }

  /* ---- Side stats (left_profile, replaces the old teams widget) ---- */
  .pb-profile-side-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* margin-top: 14px; */
    padding: 12px;
    border-radius: 16px;
    background: var(--pbpf-panel) !important;
    border: 1px solid var(--pbpf-border) !important;
    border-radius: var(--pbpf-radius) !important;
    box-shadow: var(--pbpf-shadow);
    max-width: 520px;
  }
  .pb-profile-side-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 12px;
    overflow: hidden;
    transition: background .2s ease, transform .2s ease;
  }
  .pb-profile-side-stat:hover {
    background: rgba(255,255,255,.05);
    transform: translateX(2px);
  }
  .pb-profile-side-stat::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, var(--pb-stat-accent, var(--pbpf-green)), var(--pb-stat-accent-2, var(--pbpf-green-2)));
    opacity: .8;
  }
  .pb-profile-side-stat i {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    background: linear-gradient(135deg, color-mix(in srgb, var(--pb-stat-accent, var(--pbpf-green)) 24%, transparent), color-mix(in srgb, var(--pb-stat-accent-2, var(--pbpf-green-2)) 14%, transparent));
    color: var(--pb-stat-accent, var(--pbpf-green));
    font-size: 16px;
  }
  .pb-profile-side-stat-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .pb-profile-side-stat-text span { font-size: 10.5px; color: #a3a5b3; line-height: 1.2; }
  .pb-profile-side-stat-text strong { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; }
  .pb-profile-side-stat-text strong em { font-size: 10.5px; font-weight: 700; color: #a3a5b3; font-style: normal; margin-left: 2px; }

  .pb-profile-side-stat--days     { --pb-stat-accent: #4fea9f; --pb-stat-accent-2: #22b877; }
  .pb-profile-side-stat--thanks   { --pb-stat-accent: #ff6b8b; --pb-stat-accent-2: #c23a5c; }
  .pb-profile-side-stat--rating   { --pb-stat-accent: #5b9dff; --pb-stat-accent-2: #2f6fd6; }
  .pb-profile-side-stat--messages { --pb-stat-accent: #ffb648; --pb-stat-accent-2: #d68d1f; }

  @media (max-width: 768px) {
    .pb-profile-side-stats { max-width: none; }
  }

  /* ---- Profile visitors card (matches .pb-profile-side-stat visual language) ---- */
  .pb-profile-visitors {
    --pb-stat-accent: #b98bff;
    --pb-stat-accent-2: #7c4fd6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--pbpf-inner);
    border: 1px solid rgba(255,255,255,.05);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
  .pb-profile-visitors::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, var(--pb-stat-accent), var(--pb-stat-accent-2));
    opacity: 0; transition: opacity .22s ease;
  }
  .pb-profile-visitors:hover {
    transform: translateY(-2px);
    border-color: rgba(185,139,255,.28);
    box-shadow: 0 12px 26px rgba(0,0,0,.3);
  }
  .pb-profile-visitors:hover::before { opacity: 1; }

  .pb-profile-visitors-head {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
  }
  .pb-profile-visitors-head i {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pb-stat-accent) 22%, transparent), color-mix(in srgb, var(--pb-stat-accent-2) 14%, transparent));
    color: var(--pb-stat-accent);
    font-size: 19px;
  }
  .pb-profile-visitors-label {
    font-size: 11px;
    color: #8f91a0;
    line-height: 1.2;
  }

  .pb-profile-visitors-stack {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .pb-visitor-avatar {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-left: -11px;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transition: transform .18s ease, z-index 0s;
  }
  .pb-profile-visitors-stack .pb-visitor-avatar:first-child { margin-left: 0; }
  .pb-profile-visitors-stack .pb-visitor-avatar:nth-child(1) { z-index: 4; }
  .pb-profile-visitors-stack .pb-visitor-avatar:nth-child(2) { z-index: 3; }
  .pb-profile-visitors-stack .pb-visitor-avatar:nth-child(3) { z-index: 2; }
  .pb-profile-visitors-stack .pb-visitor-avatar:nth-child(4) { z-index: 1; }
  .pb-visitor-avatar:hover {
    transform: translateY(-3px) scale(1.12);
    z-index: 5 !important;
  }
  /* Circle mask + border live on an inner wrapper so overflow:hidden
     never clips the tooltip, which is an absolutely-positioned sibling
     layer sitting on the (non-clipped) outer .pb-visitor-avatar. */
  .pb-visitor-avatar .pb-avatar-wrap {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: 2px solid #292932;
    background: #1c1c24;
    overflow: hidden;
    transition: border-color .18s ease;
  }
  .pb-visitor-avatar:hover .pb-avatar-wrap {
    border-color: var(--pb-stat-accent, #b98bff);
  }
  .pb-visitor-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
  }
  .pb-profile-visitors-empty-text {
    font-size: 12px;
    font-weight: 700;
    color: #5c5e6b;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Custom tooltip on visitor avatars — replaces the plain native title */
  .pb-visitor-avatar[data-pb-tooltip]::after {
    content: attr(data-pb-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: #14141a;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 20;
  }
  .pb-visitor-avatar[data-pb-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #14141a;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 20;
  }
  .pb-visitor-avatar[data-pb-tooltip]:hover::after,
  .pb-visitor-avatar[data-pb-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* ---- Online / offline pulsing dot ---- */
  .activity_name { display: flex; align-items: center; gap: 7px; }
  #sonline, #soffline {
    position: relative;
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  #sonline {
    background: #3dd98a;
    box-shadow: 0 0 0 0 rgba(61,217,138,.65);
    animation: pbStatusPulseOnline 1.8s infinite;
  }
  #soffline {
    background: #ff5a5a;
    box-shadow: 0 0 0 0 rgba(255,90,90,.6);
    animation: pbStatusPulseOffline 1.8s infinite;
  }
  @keyframes pbStatusPulseOnline {
    0%   { box-shadow: 0 0 0 0 rgba(61,217,138,.65); }
    70%  { box-shadow: 0 0 0 7px rgba(61,217,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,217,138,0); }
  }
  @keyframes pbStatusPulseOffline {
    0%   { box-shadow: 0 0 0 0 rgba(255,90,90,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(255,90,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); }
  }

  /* Contacts (telegram/steam) */
  .profile_contacts_info .tg_contact,
  .profile_contacts_info .steam_contact,
  .contacts_profile .tg_contact,
  .contacts_profile .steam_contact {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--pbpf-inner);
    border: 1px solid var(--pbpf-border);
    font-size: 20px; color: #cfd2dd;
    transition: .22s ease;
  }
  .profile_contacts_info a:hover .tg_contact { border-color: #2aabee; color: #2aabee; transform: translateY(-2px); }
  .profile_contacts_info a:hover .steam_contact { border-color: #66c0f4; color: #66c0f4; transform: translateY(-2px); }

  /* ---- Right column blocks ---- */
  .profile_r_block,
  #profile_activity_block,
  .profile_progress {
    background: var(--pbpf-panel) !important;
    border: 1px solid var(--pbpf-border) !important;
    border-radius: var(--pbpf-radius) !important;
    box-shadow: var(--pbpf-shadow);
    padding: 16px !important;
    margin-bottom: 16px;
  }
  .flex_head_block .flex_head_l > i {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(91,233,163,.22), rgba(34,184,119,.14));
    color: var(--pbpf-green);
    font-size: 20px; margin-right: 10px;
  }
  .name_top_usr { font-weight: 800; color: #fff; }
  .desp_top_usr { color: #8f91a0; font-size: 11px; }
  .all_friends_btn {
    background: rgba(79,234,159,.12);
    border: 1px solid rgba(79,234,159,.28);
    color: #9af0c5 !important;
    border-radius: 10px; padding: 7px 14px; font-size: 11px; font-weight: 700;
    transition: .22s ease;
  }
  .all_friends_btn:hover { background: rgba(79,234,159,.2); transform: translateY(-1px); }

  /* Wall / comment button */
  .send_comment, .send_comment_btn {
    background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(45,132,92,.38);
    transition: transform .2s ease, filter .2s ease;
  }
  .send_comment:hover, .send_comment_btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

  /* ---- Responsive ---- */
  @media (max-width: 991px) {
    .left_profile { padding: 20px 18px !important; border-radius: 18px !important; }
    .profile_top .username, .left_profile .username { font-size: 19px !important; }
  }
  @media (max-width: 640px) {
    /* On phones the corner buttons would collide with the centered
       content — flow them below the name instead. */
    .left_profile {
      padding: 20px 16px 18px !important;
    }
    .left_profile .prof_r {
      position: static !important;
      margin-top: 16px !important;
      flex-wrap: wrap;
      justify-content: center;
    }
    .left_profile .pb-steam-avatar-shell {
      width: 108px !important; height: 108px !important;
      min-width: 108px !important; min-height: 108px !important;
    }
    html body .left_profile .pb-avatar-profile-main-wrap > img.avatar_profile {
      width: 92px !important; height: 92px !important;
    }
    .pb-profile-info-grid { grid-template-columns: 1fr !important; }
    .pb-profile-tabs { min-height: 48px !important; }
    .pb-profile-tab span { font-size: 12px; }
    .profile_top .username, .left_profile .username { font-size: 18px !important; }
  }

    .left_profile { position: relative;      border-radius: 16px;overflow: hidden; }
    .profile-bg-wrap {
      position: absolute; inset: 0;
      background-size: cover;
     border-radius: 16px;
      background-position: center;

      background-repeat: no-repeat;
      z-index: 0;
    }
    .profile-bg-video {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
           border-radius: 16px;
      z-index: 0;
      will-change: auto;
    }
    .profile-bg-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(15,17,28,0.72) 100%);
      z-index: 1;
    }
    .left_profile > *:not(.profile-bg-wrap):not(.profile-bg-overlay) {
      position: relative;
      z-index: 2;
    }
    .pb-steam-avatar-shell {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 172px;
      height: 172px;
      min-width: 172px;
      min-height: 172px;
      overflow: visible;
      line-height: 0;
    }
    .pb-steam-avatar-shell .pb-avatar-profile-main-wrap {
      position: relative;
      z-index: 2;
    }
    .pb-steam-avatar-shell .pb-steam-level-ring {
      position: absolute !important;
      z-index: 4 !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
      display: block !important;
      pointer-events: none !important;
    }
    .pb-steam-avatar-shell .pb-steam-level-ring svg {
      filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
    }
    .pb-steam-avatar-shell .pb-steam-level-number {
      right: 0 !important;
      bottom: 0 !important;
    }
    @media (max-width: 768px) {
      .profile-bg-wrap { background-position: top center; }
      .pb-steam-avatar-shell {
        width: 154px;
        height: 154px;
        min-width: 154px;
        min-height: 154px;
      }
    }

/* ============================================================= */
/*  Настройки — вкладки/переключатель (solution2)                 */
/*  Вкладки: Информация · Приватность · Уведомления · Контакты    */
/* ============================================================= */

/* Меню-список в едином стиле с блоками правой части (тот же панельный фон,
   что у .contacts_setting_block / .signature_block_setting) */
.settings_tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(1deg, rgb(37, 37, 46) 30%, rgb(41, 41, 50) 100%);
  box-shadow: rgba(19, 21, 26, 0.31) 0px 5px 10px;
}

/* Плавающая подсветка активного пункта меню */
.settings_tab_glow {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  width: auto;
  height: 0;
  border-radius: 12px;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  box-shadow: 0 6px 16px rgba(79, 234, 159, .28);
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
  pointer-events: none;
}

.settings_tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border: 0;
  outline: 0;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  color: #a6a9bd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  transition: color .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.settings_tab:hover {
  color: #e7e9f5;
  background: rgba(255, 255, 255, .04);
}

.settings_tab .settings_tab_ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #9a9db2;
  transition: background .22s ease, box-shadow .22s ease, color .22s ease;
}

.settings_tab .settings_tab_ic i {
  font-size: 18px;
  line-height: 0;
}

.settings_tab .settings_tab_label {
  flex: 1 1 auto;
}

.settings_tab .settings_tab_arrow {
  font-size: 20px;
  line-height: 0;
  color: #6a6d82;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .22s ease, transform .22s ease, color .22s ease;
}

.settings_tab:hover .settings_tab_arrow {
  opacity: .8;
  transform: translateX(0);
}

.settings_tab.is-active {
  color: #eafff5;
}

.settings_tab.is-active .settings_tab_ic {
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: #fff;
}

.settings_tab.is-active .settings_tab_arrow {
  opacity: 1;
  transform: translateX(0);
  color: #eafff5;
}

/* ── Единые заголовки разделов настроек ── */
.settings_heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
/* Заголовок ВНУТРИ блока меню разделов */
.settings_heading--menu {
  margin: 2px 2px 8px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.settings_heading + .block_public_info,
.settings_heading + .password_setting_block {
  margin-top: 0;
}
.settings_heading_ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(79, 234, 159, .16), rgba(56, 100, 79, .1));
  box-shadow: inset 0 0 0 1px rgba(79, 234, 159, .18);
  color: #4fea9f;
  font-size: 19px;
  line-height: 0;
}
.settings_heading_ic i { line-height: 0; }
.settings_heading_cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.settings_heading_title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f0f1f8;
  line-height: 1.2;
}
.settings_heading_sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #7d7f92;
  line-height: 1.3;
}

/* ── Кнопка сохранения — единое целое с полем ──
   Каждое поле «Основной информации» и соцсетей сохраняется отдельно,
   т.к. часть значений (напр. логин) нельзя менять по нескольку раз.
   Кнопка вписана прямо в правый край инпута, без зазора, как одна деталь. */
.custom-input.field-save > input {
  padding-right: 106px !important;
}
.custom-input.field-save > .fieldsave-btn {
  position: absolute;
  z-index: 3;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  box-shadow: 0 2px 8px rgba(79, 234, 159, .22);
  transition: filter .16s ease, box-shadow .16s ease;
}
.custom-input.field-save > .fieldsave-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 3px 11px rgba(79, 234, 159, .3);
}
.custom-input.field-save > .fieldsave-btn:active {
  filter: brightness(.97);
}
.custom-input.field-save > .fieldsave-btn i {
  position: static;
  color: inherit;
  font-size: 15px;
  line-height: 0;
}

/* Кнопка «Сохранить дату рождения» — на всю ширину блока даты,
   с отступом снизу, чтобы «Персональная ссылка» не наезжала. */
.block_date_edit {
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
}
.fieldsave-btn--block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 14px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  box-shadow: 0 4px 12px rgba(79, 234, 159, .22);
  transition: filter .16s ease, box-shadow .16s ease;
}
.fieldsave-btn--block:hover { filter: brightness(1.07); box-shadow: 0 5px 15px rgba(79, 234, 159, .3); }
.fieldsave-btn--block:active { filter: brightness(.96); }
.fieldsave-btn--block i { font-size: 17px; line-height: 0; }

/* Ответ сервера показываем всплывающим тостером (см. JS-наблюдатель в
   settings.tpl), поэтому «сырые» контейнеры-результаты скрыты. */
.fieldsave-result,
.js-toast-result {
  display: none !important;
}

/* Панели контента */
.settings_pane {
  display: none;
  animation: pbSettingsFade .28s ease;
}
.settings_pane.is-active {
  display: block;
}

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

/* Когда открыта вкладка «Контакты», прячем правую колонку настроек */
.col-lg-9.profile-settings.settings_hide_right {
  display: none !important;
}

/* Режим «Контакты»: левая колонка растягивается на всю ширину строки и
   превращается в ту же двухколоночную раскладку «меню + контент», что и
   на остальных вкладках — меню слева фиксированной ширины, блоки
   контактов занимают всё оставшееся место. Никакого центрирования и
   сужения — структура совпадает с другими вкладками. */
@media (min-width: 992px) {
  .row.settings_contacts_mode > .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    overflow: hidden; /* содержит плавающее меню по высоте */
  }
  /* Меню — фиксированная узкая колонка слева (плавает), подсветка не
     растягивается в гигантскую плашку */
  .row.settings_contacts_mode > .col-lg-3 > .settings_tabs {
    float: left;
    width: 25%;
    margin-bottom: 0;
  }
  /* Блоки контактов/подписи — справа от меню, во всю оставшуюся ширину.
     Модальные окна и скрипты (display:none / без бокса) на раскладку не
     влияют, поэтому structure не ломается. */
  .row.settings_contacts_mode > .col-lg-3 > .settings_pane_side.is-active {
    margin-left: calc(25% + 30px);
    width: auto;
    max-width: none;
  }
}

/* ── Мобильная адаптация ── */
/* На планшете/телефоне левая колонка встаёт над правой во всю ширину —
   меню остаётся вертикальным списком, стрелка не нужна. */
@media (max-width: 991.98px) {
  .settings_tabs {
    margin-bottom: 18px;
  }
  .settings_tab .settings_tab_arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .settings_tabs {
    padding: 6px;
    border-radius: 14px;
  }
  .settings_tab {
    padding: 11px 10px;
    font-size: 13px;
    gap: 10px;
  }
  .settings_tab .settings_tab_ic {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .settings_tab .settings_tab_ic i {
    font-size: 17px;
  }
}

/* Сетка выбора позиции тостов: на узких экранах — 2 колонки вместо 3 */
@media (max-width: 440px) {
  .toast-pos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* ============================================================= */
/*  Уведомления-карточки (заявки в друзья / новые сообщения)      */
/*  Компактные, рассчитаны на 100+ — фиксированная панель со       */
/*  внутренним скроллом. pb-notify-cards.js                        */
/* ============================================================= */
.pb-nc-stack {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  z-index: 99998;
  display: flex !important;
  flex-direction: column;
  width: 300px;
  max-width: calc(100vw - 24px);
  max-height: min(560px, calc(100vh - 32px));
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.pb-nc-stack.is-hiding {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

/* Шапка со счётчиком */
.pb-nc-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: linear-gradient(1deg, rgb(33, 33, 41) 30%, rgb(40, 40, 49) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
  pointer-events: auto;
}
.pb-nc-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #eef0f8;
}
.pb-nc-header-title i { font-size: 15px; color: #4fea9f; line-height: 0; }
.pb-nc-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 800;
  color: #08150f;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
}
.pb-nc-header-clear {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  background: rgba(255, 255, 255, .05);
  color: #8a8c9e;
  transition: background .15s ease, color .15s ease;
}
.pb-nc-header-clear i { font-size: 15px; line-height: 0; }
.pb-nc-header-clear:hover { background: rgba(255, 92, 92, .16); color: #ff8080; }

/* Прокручиваемый список — тут скролл при 100+ карточках */
.pb-nc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
  pointer-events: auto;
}
.pb-nc-scroll::-webkit-scrollbar { width: 4px; }
.pb-nc-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }
.pb-nc-scroll::-webkit-scrollbar-track { background: transparent; }

/* Компактная карточка — одна строка: аватар + текст + иконки-кнопки */
.pb-nc-card {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 11px;
  background: linear-gradient(1deg, rgb(37, 37, 46) 30%, rgb(43, 43, 53) 100%);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  overflow: hidden;
  pointer-events: auto;
  animation: pbNcIn .28s ease;
}
.pb-nc-card.is-hiding { animation: pbNcOut .26s ease forwards; }
.pb-nc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4fea9f, #2fae78);
}
.pb-nc-card--dialog::before { background: linear-gradient(180deg, #5b9dff, #2f6fd6); }

@keyframes pbNcIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pbNcOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(16px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
}

.pb-nc-ava {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #1c1c24;
}

.pb-nc-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.pb-nc-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f0f1f8;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-nc-name:hover { color: #fff; text-decoration: none; }
.pb-nc-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: #8a8c9e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-nc-sub i { font-size: 12px; line-height: 0; color: #4fea9f; }
.pb-nc-sub--blue i { color: #5b9dff; }

.pb-nc-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
}
.pb-nc-ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s ease, background .15s ease, opacity .15s ease;
}
.pb-nc-ico i { font-size: 17px; line-height: 0; }
.pb-nc-ico:disabled { opacity: .5; cursor: default; }
.pb-nc-ico--accept {
  color: #08150f;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
}
.pb-nc-ico--accept:hover { filter: brightness(1.08); }
.pb-nc-ico--decline {
  color: #ff9d9d;
  background: rgba(255, 92, 92, .12);
}
.pb-nc-ico--decline:hover { background: rgba(255, 92, 92, .22); color: #ffb3b3; }
.pb-nc-ico--open {
  color: #fff;
  background: linear-gradient(135deg, #5b9dff, #2f6fd6);
}
.pb-nc-ico--open:hover { filter: brightness(1.08); color: #fff; }

/* Мобильная адаптация */
@media (max-width: 575.98px) {
  .pb-nc-stack {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(60vh, calc(100vh - 24px));
  }
}

/* ===== Banlist card redesign (vertical, centered) ===== */
.pb-ban-card-col {
  margin-bottom: 20px !important;
  display: flex;
}

.pb-ban-card {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  overflow: visible;
  width: 100%;
}

.pb-ban-card__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 250px;
  padding: 22px 18px 18px;
  border-radius: 16px;
  background: linear-gradient(1deg, #25252e 30%, #292932 100%);
  box-shadow: 0px 5px 10px #13151a4f;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pb-ban-card__row:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 18px #13151a66;
}

.pb-ban-card__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #ffffff0d;
  color: #7a7a92;
  font-size: 30px;
  box-shadow: 0 0 0 2px var(--pb-ban-avatar-ring, #ffffff1a);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.pb-ban-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--pb-ban-avatar-pulse, transparent);
  animation: pbBanAvatarPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes pbBanAvatarPulse {
  0%   { box-shadow: 0 0 0 0 var(--pb-ban-avatar-pulse, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.pb-ban-card.danger .pb-ban-card__avatar,
.table-row.danger .pb-ban-card__avatar {
  --pb-ban-avatar-ring: #ff6d6759;
  --pb-ban-avatar-pulse: #ff6d6754;
  color: #ff9c9c;
}

.pb-ban-card.success .pb-ban-card__avatar,
.table-row.success .pb-ban-card__avatar {
  --pb-ban-avatar-ring: #4fea9f59;
  --pb-ban-avatar-pulse: #4fea9f4f;
  color: #7cf5b6;
}

@media (prefers-reduced-motion: reduce) {
  .pb-ban-card__avatar::after {
    animation: none;
  }
}

.pb-ban-card__avatar .pb-ban-card__icon-open {
  display: none;
}

.pb-ban-card.success .pb-ban-card__avatar .pb-ban-card__icon-closed,
.table-row.success .pb-ban-card__avatar .pb-ban-card__icon-closed {
  display: none;
}

.pb-ban-card.success .pb-ban-card__avatar .pb-ban-card__icon-open,
.table-row.success .pb-ban-card__avatar .pb-ban-card__icon-open {
  display: inline-block;
}

.pb-ban-card__player {
  max-width: 100%;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-ban-card__reason,
.pb-ban-card__admin {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: #9c9cae;
  font-size: 11.5px;
  font-weight: 600;
}

.pb-ban-card__reason span,
.pb-ban-card__admin span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-ban-card__reason i,
.pb-ban-card__admin i {
  flex-shrink: 0;
  font-size: 14px;
  color: #6f6f82;
}

.pb-ban-card__admin {
  color: #ff9c9c;
  margin-bottom: auto;
}

.pb-ban-card__admin i {
  color: #ff8c8c;
}

.pb-ban-card__status {
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #5c5c71 0, #3f3f4d 100%));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-shadow: #000000d4 1px 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.pb-ban-card.danger .pb-ban-card__status,
.table-row.danger .pb-ban-card__status {
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #ff6d67 0, #b43535 100%));
}

.pb-ban-card.success .pb-ban-card__status,
.table-row.success .pb-ban-card__status {
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
}

@media (max-width: 480px) {
  .pb-ban-card__row {
    min-height: 220px;
    padding: 18px 14px 14px;
  }

  .pb-ban-card__avatar {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}

/* ===== Server dropdown (banlist / mutlist) ===== */
.block_select_servers_blocked {
  align-items: center;
  gap: 14px;
}

.block_select_servers_blocked .pb-server-dropdown,
.block_select_servers_blocked .block_search {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
}

@media (max-width: 991.99px) {
  .block_select_servers_blocked .pb-server-dropdown,
  .block_select_servers_blocked .block_search {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
}

.pb-server-dropdown {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  color: inherit;
}

.pb-server-dropdown .pb-server-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  max-width: none;
  padding: 0 10px 0 6px;
  margin: 0;
  border: 1px solid #ffffff0f;
  border-radius: 50px;
  background: linear-gradient(1deg, #2b2b34 30%, #34343f 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pb-server-dropdown .pb-server-dropdown__trigger:hover,
.pb-server-dropdown .pb-server-dropdown__trigger:focus {
  border-color: #4fea9f2e;
  background: linear-gradient(1deg, #303039 30%, #3a3a46 100%);
  outline: none;
}

.pb-server-dropdown .pb-server-dropdown__trigger[aria-expanded="true"] {
  border-color: #4fea9f4a;
  background: linear-gradient(1deg, #313139 30%, #3c3c48 100%);
  box-shadow: 0 0 0 4px #4fea9f14;
}

.pb-server-dropdown .pb-server-dropdown__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  color: #08150f;
  font-size: 17px;
  box-shadow: 0 0 12px #4fea9f3d;
}

.pb-server-dropdown .pb-server-dropdown__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.pb-server-dropdown .pb-server-dropdown__eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a7a92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-server-dropdown .pb-server-dropdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-server-dropdown .pb-server-dropdown__chevron {
  flex-shrink: 0;
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff0a;
  font-size: 16px;
  color: #9c9cae;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), background 0.18s ease, color 0.18s ease;
}

.pb-server-dropdown .pb-server-dropdown__trigger[aria-expanded="true"] .pb-server-dropdown__chevron {
  transform: rotate(180deg);
  background: #4fea9f1f;
  color: #4fea9f;
}

.pb-server-dropdown .pb-server-dropdown__menu {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  min-width: 260px;
  width: 100%;
  max-width: none;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  background: linear-gradient(1deg, #25252e 30%, #292932 100%);
  box-shadow: 0px 16px 36px #13151a91;
  list-style: none;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(.4,0,.2,1);
}

.pb-server-dropdown .pb-server-dropdown__menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pb-server-dropdown .pb-server-dropdown__menu-title {
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6a80;
}

.pb-server-dropdown .pb-server-dropdown__menu::-webkit-scrollbar {
  width: 4px;
}

.pb-server-dropdown .pb-server-dropdown__menu::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 4px;
}

.pb-server-dropdown .pb-server-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #c9c9d6;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pb-server-dropdown .pb-server-dropdown__item:hover,
.pb-server-dropdown .pb-server-dropdown__item:focus {
  background: #ffffff0d;
  color: #fff;
  text-decoration: none;
}

.pb-server-dropdown .pb-server-dropdown__item.is-active {
  color: #4fea9f;
  background: #4fea9f14;
}

.pb-server-dropdown .pb-server-dropdown__check {
  flex-shrink: 0;
  font-size: 15px;
  color: #4fea9f;
}

@media (max-width: 575.98px) {
  .pb-server-dropdown .pb-server-dropdown__trigger {
    height: 42px;
    gap: 9px;
    padding: 0 8px 0 5px;
    font-size: 12px;
  }
  .pb-server-dropdown .pb-server-dropdown__icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .pb-server-dropdown .pb-server-dropdown__eyebrow {
    display: none;
  }
}
