/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПРОФИЛЯ ===== */
.main {
  padding: 0;
}

.header__user-link {
  justify-content: end;
}

/* Шапка профиля */
.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  flex-wrap: wrap;
}

.profile-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary-start);
  flex-shrink: 0;
}

.profile-header__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header__info {
  flex: 1;
  min-width: 0;
}

.profile-header__name {
  font-size: 2rem;
  color: var(--color-text-white);
  margin-bottom: 5px;
  word-break: break-word;
}

.profile-header__rank {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary-start);
  border-radius: 4px;
  font-size: 0.9rem;
}

.profile-header__actions {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  gap: 10px;
  flex-shrink: 0;
}

.profile-header__message {
  padding: 10px 20px;
  white-space: nowrap;
}

/* Кнопки для своего профиля */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: auto;
}

/* Информация */
.profile-info {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  flex-wrap: wrap;
}

.profile-info__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
}

.profile-info__item i {
  color: var(--color-primary-start);
  width: 20px;
  width: auto;
}

/* Статистика */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.profile-stats__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.profile-stats__card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.profile-stats__value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary-start);
  margin-bottom: 5px;
}

.profile-stats__label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Табы */
.profile-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.profile-tabs__btn {
  padding: 5px 10px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.profile-tabs__btn:hover {
  color: var(--color-text-white);
  background: var(--color-bg-nav-hover);
}

.profile-tabs__btn--active {
  color: var(--color-primary-start);
  background: rgba(102, 126, 234, 0.1);
}

.profile-tabs__btn i {
  font-size: 1.1rem;
}

/* Контент табов */
.profile-tab {
  display: none;
}

.profile-tab--active {
  display: block;
  padding: 30px 0 20px;
}

.profile-tab__title {
  color: var(--color-text-white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* Список тем пользователя */
.profile-topics__list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.profile-topics__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-topics__item:hover {
  background: var(--color-bg-nav-hover);
}

.profile-topics__link {
  color: var(--color-text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  word-break: break-word;
}

.profile-topics__link i {
  color: var(--color-primary-start);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-topics__link:hover {
  color: var(--color-primary-start);
}

.profile-topics__date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-topics__empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
}

.profile-topics__empty i {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.profile-topics__all {
  width: max-content;
  justify-content: center;
  padding: 10px 15px;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Активность */
.profile-activity__list {
  margin: 0;
  padding: 0;
}

.profile-activity__item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s ease;
}

.profile-activity__item:hover {
  background: var(--color-bg-nav-hover);
}

.profile-activity__icon {
  width: 30px;
  flex-shrink: 0;
  color: var(--color-primary-start);
}

.profile-activity__content {
  flex: 1;
  min-width: 0;
}

.profile-activity__link {
  color: var(--color-text-white);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 5px;
  display: inline-block;
  word-break: break-word;
}

.profile-activity__link:hover {
  color: var(--color-primary-start);
}

.profile-activity__excerpt {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
  word-break: break-word;
}

.profile-activity__date {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.profile-activity__empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
}

.profile-activity__empty i {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* О себе */
.profile-about {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 30px;
}

.profile-about p {
  margin-bottom: 15px;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.profile-about strong {
  color: var(--color-text-white);
  min-width: 190px;
  display: inline-block;
}

/* Объявления */
.profile-trades__grid,
.profile-teams__grid,
.profile-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.profile-trade-card,
.profile-team-card,
.profile-guide-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
}

.profile-trade-card:hover,
.profile-team-card:hover,
.profile-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-start);
}

.profile-trade-card__title,
.profile-team-card__title,
.profile-guide-card__title {
  color: var(--color-text-white);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.profile-trade-card__title:hover,
.profile-team-card__title:hover,
.profile-guide-card__title:hover {
  color: var(--color-primary-start);
}

.profile-trade-card__skin {
  color: var(--color-primary-start);
  font-size: 0.85rem;
}

.profile-trade-card__status {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-active {
  background: rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.status-sold {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.profile-trade-card__price {
  margin: 10px 0;
}

.profile-trade-card__price-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-start);
}

/* Команды */
.profile-team-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.profile-team-card__rank,
.profile-team-card__mode {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  color: var(--color-primary-start);
}

.profile-team-card__role.leader {
  color: #ffd700;
}

/* Гайды */
.profile-guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.profile-guide-card__category {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  color: var(--color-primary-start);
}

.difficulty-новичок {
  background: #2ed573;
  color: white;
}

.difficulty-средний {
  background: #ffa502;
  color: white;
}

.difficulty-профи {
  background: #ff4757;
  color: white;
}

.profile-guide-card__stats,
.profile-trade-card__stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--color-border-light);
}

/* Пустые состояния */
.profile-trades__empty,
.profile-teams__empty,
.profile-guides__empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border-radius: 12px;
}

.profile-trades__empty i,
.profile-teams__empty i,
.profile-guides__empty i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* ===== СТИЛИ ДЛЯ РАНГОВ В ПРОФИЛЕ ===== */

.profile-info__item .rank-value {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Цвета для разных рангов */
.rank-bronze {
  background: linear-gradient(135deg, #cd7f32, #b8692a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-silver {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-gold {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-phoenix {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.rank-ranger {
  background: linear-gradient(135deg, #2ed573, #00b894);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 213, 115, 0.3);
}

.rank-champion {
  background: linear-gradient(135deg, #ffa502, #e67e22);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 165, 2, 0.3);
}

.rank-master {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.rank-elite {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.rank-legend {
  background: linear-gradient(135deg, #2c3e50, #1a252f);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

/* Иконка ранга */

/* Анимация при наведении */
.profile-info__item .rank-value {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-info__item .rank-value:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== РЕЙТИНГ ЗВЁЗДЫ ===== */
.rating-stars {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.rating-stars i {
  font-size: 14px;
}

.rating-text {
  font-size: 0.8rem;
  color: #888;
}

.profile-about p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.profile-about p strong {
  width: 140px;
  flex-shrink: 0;
}

.profile-about p i {
  width: 20px;
  color: #667eea;
}

/* ===== СТИЛИ ДЛЯ ОТЗЫВОВ (РЕЙТИНГ ТИММЕЙТА) ===== */

/* Блок с формой отзыва */
.rating-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.rating-form:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
}

.rating-form h3 {
  color: var(--color-text-white);
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-form h3 i {
  color: #ffd700;
}

/* Звёзды для оценки */
.rating-input {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.rating-input i {
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
}

.rating-input i:hover {
  transform: scale(1.1);
  color: #ffd700;
}

.rating-input i.fas {
  color: #ffd700;
}

/* Поле ввода отзыва */
.rating-form .form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: all 0.3s ease;
}

.rating-form .form__textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Кнопка отправки */
.rating-form .btn {
  margin-top: 10px;
}

/* Карточка отзыва */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.2);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-white);
  font-weight: 500;
  transition: color 0.2s ease;
}

.review-card__author:hover {
  color: #667eea;
}

.review-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__rating {
  display: flex;
  gap: 3px;
}

.review-card__rating i {
  font-size: 14px;
}

.review-card__date {
  color: #666;
  font-size: 12px;
  margin-left: auto;
}

.review-card__body {
  color: #bbb;
  line-height: 1.5;
  padding: 10px 0 5px 42px;
  font-style: italic;
}

/* ===== РЕЙТИНГ ТИММЕЙТА И ПРОДАВЦА ===== */

/* Общий контейнер рейтинга */
.rating-summary {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-summary__average {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rating-summary__value {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
}

.rating-summary__max {
  font-size: 18px;
  color: #888;
}

.rating-summary__count,
.rating-summary__teams {
  color: #888;
}

.rating-summary__sales {
  color: #888;
  margin-left: 10px;
}

/* Звёзды */
.rating-stars {
  display: inline-flex;
  gap: 3px;
  margin: 10px 0;
  margin-right: 10px;
}

.rating-stars i {
  font-size: 20px;
}

.rating-stars i.active {
  color: #ffd700;
}

.rating-stars i:not(.active) {
  color: #ffd700;
}

/* Форма отзыва */
.rating-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-form h3 {
  color: var(--color-text-white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.rating-form h3 i {
  color: #ffd700;
}

/* Поля ввода */
.rating-form .form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
}

.rating-form .form__textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Карточка отзыва */
.review-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-white);
}

.review-card__author:hover {
  color: #667eea;
}

.review-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__rating i {
  font-size: 14px;
}

.review-card__rating i.active {
  color: #ffd700;
}

.review-card__rating i:not(.active) {
  color: #555;
}

.review-card__date {
  color: #666;
  font-size: 12px;
}

.review-card__product {
  color: #667eea;
  font-size: 12px;
  background: rgba(102, 126, 234, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}

.review-card__body {
  color: #bbb;
  line-height: 1.5;
  padding-left: 42px;
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #888;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #555;
}

/* Информационное сообщение */
.info-message {
  background: rgba(102, 126, 234, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  color: #888;
  border-left: 3px solid #667eea;
}

.info-message i {
  margin-right: 8px;
  color: #667eea;
}

/* Звёзды для выбора оценки */
.rating-input,
.seller-rating-input {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.rating-input i,
.seller-rating-input i {
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
}

.rating-input i:hover,
.seller-rating-input i:hover {
  transform: scale(1.1);
  color: #ffd700;
}

.rating-input i.fas,
.seller-rating-input i.fas {
  color: #ffd700;
}

/* Убедитесь, что у вас есть такие стили */
.fa-star {
  color: #ddd;
  /* цвет неактивных звезд (серый) */
}

.fa-star.active {
  color: #ffd700;
  /* цвет активных звезд (золотой) */
}

/* В ваш файл стилей */
.rating-stars i,
.review-card__rating i {
  color: #aaa;
  /* цвет неактивных звезд */
  transition: color 0.2s ease;
}

.rating-stars i.active,
.review-card__rating i.active {
  color: #ffd700;
  /* цвет активных звезд */
}

/* ===== КАРТОЧКИ ТЕМ В ПРОФИЛЕ ===== */

.profile-topics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.profile-topic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.profile-topic-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.profile-topic-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-topic-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-topic-card__icon i {
  color: #667eea;
  font-size: 1.1rem;
}

.profile-topic-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.profile-topic-card__link {
  color: var(--color-text-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-topic-card__link:hover {
  color: #667eea;
}

.profile-topic-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #888;
}

.profile-topic-card__meta i {
  margin-right: 4px;
  width: 14px;
}

.profile-topic-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #888;
}

.profile-topic-card__stats i {
  margin-right: 5px;
}

.profile-topic-card__views i,
.profile-topic-card__replies i {
  color: #667eea;
}

/* ===== СТАТИСТИКА ГАЙДОВ В ПРОФИЛЕ ===== */

.profile-guides-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.guide-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #ffd700;
}

.guide-stat-label {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

.guide-stat-stars {
  margin-top: 8px;
}

.guide-stat-stars i {
  font-size: 12px;
  color: #555;
}

.guide-stat-stars i.active {
  color: #ffd700;
}

/* Рейтинг гайда в карточке */

.profile-guide-card__stats {
  margin-bottom: 10px;
}

.profile-guide-card__stats .guide-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
}

.profile-guide-card__stats .guide-rating i {
  font-size: 10px;
  color: #555;
}

.profile-guide-card__stats .guide-rating i.active {
  color: #ffd700;
}

.guide-rating-value {
  font-size: 10px;
  color: #888;
  margin-left: 3px;
}

.rating-summary__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* Звезды рейтинга */
.review-card__rating i,
.rating-stars i {
  color: #ddd;
  font-size: 14px;
  margin-right: 2px;
}

.review-card__rating i.active,
.rating-stars i.active {
  color: #ffd700;
}

.rating-summary__average {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.rating-summary__value {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
}

.rating-summary__max {
  font-size: 20px;
  color: #888;
}

.rating-stars {
  margin: 10px 0;
}

.rating-stars i {
  font-size: 20px;
}

.rating-summary__info {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.rating-summary__count,
.rating-summary__sales {
  display: inline-block;
  margin: 0 10px;
}

@media(max-width: 992px) {
  .profile-header {
    flex-direction: column;
    justify-content: center;
    align-self: center;
    text-align: center;
    gap: 20px;
  }

  .profile-header__actions,
  .profile-actions {
    margin-left: 0;
    display: flex;
    flex-direction: row;
  }

}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .profile-header__avatar {
    margin: 0 auto;
  }

  .profile-header__info {
    text-align: center;
  }

  .profile-header__actions {
    margin-left: 0;
    justify-content: center;
  }

  .profile-actions {
    margin-left: 0;
    justify-content: center;
  }

  .profile-info {
    flex-direction: column;
    gap: 15px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .profile-tabs {
    justify-content: center;
  }

  .profile-topics__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-topics__date {
    align-self: flex-start;
  }

  .profile-activity__item {
    flex-direction: column;
    gap: 10px;
  }

  .profile-activity__icon {
    width: auto;
  }

  .profile-about strong {
    min-width: 120px;
  }

  .profile-about p {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-about p strong {
    margin-bottom: 5px;
  }

  .rating-input i {
    font-size: 28px;
  }

  .review-card__header {
    gap: 10px;
  }

  .review-card__body {
    padding-left: 0;
  }

  .rating-summary__average span:first-child {
    font-size: 1rem;
  }

  .rating-input i,
  .seller-rating-input i {
    font-size: 24px;
  }

  .rating-summary__value {
    font-size: 1rem;

  }

  .review-card__header {
    gap: 10px;
  }

  .review-card__body {
    padding-left: 0;
  }

  .rating-input i,
  .seller-rating-input i {
    font-size: 24px;
  }

  .profile-topics__grid {
    grid-template-columns: 1fr;
  }

  .profile-topic-card {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .profile-header {
    padding: 20px;
  }

  .profile-header__name {
    font-size: 1.5rem;
  }

  .profile-header__avatar {
    width: 100px;
    height: 100px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .profile-stats__card {
    padding: 15px;
  }

  .profile-tabs__btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .profile-topics__link {
    font-size: 0.9rem;
  }

  .profile-topics__date {
    font-size: 0.8rem;
  }

  .profile-about {
    padding: 20px;
  }

  .profile-about strong {
    display: block;
    margin-bottom: 5px;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-actions .btn {
    width: 100%;
    text-align: center;
  }

  .profile-header__message {
    width: 100%;
    text-align: center;
  }

  .profile-info {
    gap: 10px;
  }

  .profile-info__item {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .rating-input i {
    font-size: 24px;
  }

  .review-card__author {
    font-size: 0.9rem;
  }

  .rating-form {
    padding: 15px;
  }

  .rating-input i,
  .seller-rating-input i {
    font-size: 20px;
  }

  .rating-input i,
  .seller-rating-input i {
    font-size: 20px;
  }

  .rating-form {
    padding: 15px;
  }

  .profile-header__actions,
  .profile-actions {
    margin-left: 0;
    display: flex;
    flex-direction: column;
  }

  .profile-trades__grid,
  .profile-teams__grid,
  .profile-guides__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}