/* Community — доработки поверх community.css */
.tab,
.nav-item,
.tabbar-item {
  transition: none !important;
}

button.tab {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.tabs button.tab.active {
  background: var(--pill-active-gradient);
  box-shadow: var(--pill-active-glow);
  color: var(--text);
}

.pf-tab-panel[hidden] {
  display: none !important;
}

.profile-secondary button {
  border: 0;
  background: none;
  padding: 0;
  color: #3b82f6;
  font: inherit;
  cursor: pointer;
}

#pfBadgeSlot .verified-check {
  width: 22px;
  height: 22px;
}

.prm-cropper[hidden],
.prm-cropper.hidden {
  display: none !important;
}

/* Community sidebar — nav-item, не accent-pill из global_redesign */
#communitySidebar .nav-item,
#communitySidebar #communityLogoutBtn {
  border-radius: 16px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text, #fff) !important;
  box-shadow: none !important;
  border: none !important;
  font-weight: 500 !important;
  text-align: left !important;
}

#communitySidebar .nav-item:hover,
#communitySidebar #communityLogoutBtn:hover {
  background: var(--surface-hover, #1f1f1f) !important;
  color: var(--text, #fff) !important;
}

#communitySidebar .nav-item.active {
  background: var(--active, #262626) !important;
}

#communitySidebar #communityLogoutBtn {
  width: 100%;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── Вкладка «Подарки» в профиле ────────────────────────────────────── */
#pfGiftsPanel {
  padding-top: 16px;
}

.pf-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pf-gifts-empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 18px;
  background: var(--surface, #161616);
}

.pf-gifts-empty[hidden] {
  display: none !important;
}

.pf-gifts-empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--active, #262626);
}

.pf-gifts-empty-icon img {
  filter: brightness(0) invert(0.85);
  opacity: 0.8;
}

.pf-gifts-empty h2 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text, #fff);
}

.pf-gifts-empty p {
  max-width: 380px;
  color: var(--muted, #a3a3a3);
  font-size: 0.85rem;
  line-height: 1.5;
}

.pf-gifts-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  color: var(--muted, #a3a3a3);
  font-size: 13px;
}

.pf-gifts-loading[hidden] {
  display: none !important;
}

.pf-gifts-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border, #2a2a2a);
  border-top-color: var(--accent, #3b82f6);
  border-radius: 50%;
  animation: pf-gifts-spin 0.8s linear infinite;
}

@keyframes pf-gifts-spin {
  to { transform: rotate(360deg); }
}

/* Заглушка-сетка на время первой загрузки (если ещё не было рендера) */
#pfGiftsGrid:empty {
  display: none;
}
