/* ========== ОКНО ДРУЗЕЙ ========== */

#friendsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

#friendsWindow {
  background: white;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

#friendsContent {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
}

.friend-row:hover {
  background: #f7f8fc;
}

.friend-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.friend-status-dot.online {
  background: #4caf50;
}

.friend-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.friend-pending-label {
  font-size: 11px;
  color: #999;
  font-style: italic;
  flex-shrink: 0;
}

/* ========== КНОПКИ ЗАЯВКИ В ДРУЗЬЯ В АНКЕТЕ ========== */

.profile-friend-btn {
  margin-bottom: 14px;
}

.profile-friend-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-friend-actions .profile-friend-btn {
  margin-bottom: 0;
}

.profile-friend-btn-decline {
  background: linear-gradient(135deg, #bbb, #888);
}

.profile-friend-btn-decline:hover {
  background: linear-gradient(135deg, #999, #666);
}
