/* Мобильная панель профиля — выезжает справа, показывает всю страницу
   /profile целиком. Палитра — как у попапа (profile-modal.css). */

.ProfileDrawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.ProfileDrawer.is-open { pointer-events: auto; }

.ProfileDrawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}
.ProfileDrawer.is-open .ProfileDrawer__overlay { opacity: 1; }

.ProfileDrawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 480px);
  display: flex;
  flex-direction: column;
  background: #0f0c1f;
  border-left: 1px solid #241d3f;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}
.ProfileDrawer.is-open .ProfileDrawer__panel { transform: translateX(0); }

.ProfileDrawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: #0f0c1f;
  border-bottom: 1px solid #241d3f;
}
.ProfileDrawer__back {
  border: none;
  background: none;
  color: #a095de;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
}
.ProfileDrawer__back:hover { color: #fff; }
.ProfileDrawer__title {
  margin: 0 auto 0 0;
  color: #a855ff;
  font-size: 15px;
  font-weight: 600;
}
.ProfileDrawer__close {
  border: none;
  background: none;
  color: #a095de;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s;
}
.ProfileDrawer__close:hover { color: #fff; }

.ProfileDrawer__loading {
  padding: 40px 20px;
  text-align: center;
  color: #7d76a8;
  font-size: 13px;
}

/* Контент /profile рассчитан на широкую страницу — внутри узкой панели
   убираем боковые отступы контейнера и не даём вкладкам переполнять ширину. */
.ProfileDrawer #profile-drawer-body .profile-layout { padding: 20px 0 40px; min-height: 0; }
.ProfileDrawer #profile-drawer-body .profile-layout__container { padding: 0 16px; }
.ProfileDrawer #profile-drawer-body .profile-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ProfileDrawer #profile-drawer-body .profile-tabs::-webkit-scrollbar { display: none; }
.ProfileDrawer #profile-drawer-body .profile-tabs__list,
.ProfileDrawer #profile-drawer-body .profile-tabs__actions {
  flex-shrink: 0;
}
