/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ТОРГОВЛИ ===== */
/* Все общие стили вынесены в компоненты: stats.css, page-header.css, filters.css */

/* ===== 1. ШАПКА СПИСКА ОБЪЯВЛЕНИЙ ===== */
.trades-info {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.trades-info__title {
  font-size: 1.4rem;
  color: var(--color-text-white);
  margin: 0;
}

.trades-info__count {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.trades-info__count strong {
  color: var(--color-primary-start);
  font-size: 1rem;
  font-weight: 700;
}

.trades-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 30px;
}

/* ===== 2. ЛЕЙАУТ (ФИЛЬТРЫ + КОНТЕНТ) ===== */
.trades-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

/* ===== 3. САЙДБАР С ФИЛЬТРАМИ ===== */
.trades-sidebar {
  width: 100%;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Скрываем скролл для красоты */
.trades-sidebar::-webkit-scrollbar {
  width: 4px;
}

.trades-sidebar::-webkit-scrollbar-track {
  background: var(--color-border-light);
  border-radius: 3px;
}

.trades-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-primary-start);
  border-radius: 3px;
}

/* Секция фильтров - без ограничения высоты на десктопе */
.trades-sidebar .filters__section {
  max-height: none;
  overflow-y: visible;
  padding-right: 5px;
}

.trades-content {
  display: flex;
  flex-direction: column;
}

/* ===== 4. ЦЕНОВОЙ ДИАПАЗОН ===== */
.filters__price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters__price-input {
  flex: 1;
  padding: 12px 15px;
}

.filters__price-separator {
  color: var(--color-text-muted);
}

/* ===== 5. МУЛЬТИСЕЛЕКТ (ВЫБОР ОРУЖИЯ) ===== */
.filters__multiselect {
  position: relative;
}

.filters__multiselect-btn {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.filters__multiselect-btn:hover {
  border-color: var(--color-primary-start);
  background: rgba(255, 255, 255, 0.08);
}

.filters__multiselect-btn i {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.filters__multiselect-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.filters__multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 280px;
  z-index: 100;
  box-shadow: var(--shadow-card);
}

.filters__multiselect-search {
  position: relative;
  padding: 12px;
  background: #1a1a2e;
  border-bottom: 1px solid var(--color-border-light);
}

.filters__multiselect-search i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.filters__multiselect-search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  color: var(--color-text-white);
  font-size: 0.9rem;
}

.filters__multiselect-search input:focus {
  outline: none;
  border-color: var(--color-primary-start);
}

.filters__multiselect-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  background: #1a1a2e;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.filters__multiselect-group-title {
  padding: 8px 10px;
  color: var(--color-primary-start);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border-light);
}

.filters__multiselect-group-title:first-child {
  margin-top: 0;
}

.filters__multiselect-list .checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
  margin: 2px 0;
}

.filters__multiselect-list .checkbox:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Выбранные теги */
.filters__selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== ВЫБРАННЫЕ СКИНЫ (ТЕГИ) ===== */
.selected-skins-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.selected-skins-empty {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

.selected-skin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.selected-skin-tag:hover {
  background: rgba(102, 126, 234, 0.25);
}

.selected-skin-name {
  color: var(--color-text-white);
  font-weight: 500;
}

.selected-skin-weapon {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.selected-skin-tag .fa-times {
  color: #ff4757;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.selected-skin-tag .fa-times:hover {
  transform: scale(1.2);
  color: #ff6b6b;
}

/* ===== СТИЛИ ДЛЯ ПОЛЯ ПОИСКА СКИНОВ ===== */
#skins-search-input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#skins-search-input:focus {
  outline: none;
  border-color: var(--color-primary-start);
  background: rgba(255, 255, 255, 0.08);
}

#skins-search-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Иконка поиска внутри поля */
.filters__skins-search .filters__autocomplete {
  position: relative;
  width: 100%;
}

.filters__skins-search .filters__autocomplete i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

/* ===== АВТОДОПОЛНЕНИЕ СКИНОВ ===== */
.filters__skins-search {
  position: relative;
}

.filters__skins-search .filters__autocomplete-dropdown {
  max-height: 300px;
  overflow-y: auto;
}

.skin-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.2s;
}

.skin-search-item:hover {
  background: rgba(102, 126, 234, 0.15);
}

.skin-search-item .skin-info {
  flex: 1;
}

.skin-search-item .skin-name {
  font-weight: 600;
  color: var(--color-text-white);
}

.skin-search-item .skin-weapon {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 8px;
}

.skin-search-item .skin-rarity {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  color: white;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-primary-start);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-tag i {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease;
  font-size: 0.8rem;
}

.filter-tag i:hover {
  opacity: 1;
}

/* ===== 6. РАСШИРЕННЫЕ ФИЛЬТРЫ ===== */
.filters__expanded {
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.filters__more--btn {
  width: 100%;
}

/* Автодополнение для скинов */
.filters__autocomplete {
  position: relative;
}

.filters__autocomplete i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  z-index: 1;
}

.filters__autocomplete .filters__input {
  padding-left: 40px;
}

.filters__autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  color: var(--color-text-white);
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--color-border-light);
  background: #1a1a2e;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(102, 126, 234, 0.2);
}

/* ===== 7. СЕЛЕКТОР НАКЛЕЕК (общий для фильтров и модалки) ===== */
.stickers-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sticker-select-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
}

.sticker-select-label {
  min-width: 100px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.sticker-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sticker-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  cursor: pointer;
  min-width: 180px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  flex: 1;
}

.sticker-select-btn:hover {
  border-color: var(--color-primary-start);
  background: rgba(255, 255, 255, 0.08);
}

/* Цвета кнопок в зависимости от редкости */
.sticker-select-btn.epic {
  background: linear-gradient(135deg, #A1157C, #6E06A8);
  border-color: #CE93D8;
}

.sticker-select-btn.legendary {
  background: linear-gradient(135deg, #670E50, #A1157C);
  border-color: #E91E63;
}

.sticker-select-btn.arcane {
  background: linear-gradient(135deg, #6F1113, #AC191E);
  border-color: #EF5350;
}

.sticker-select-btn.rare {
  background: linear-gradient(135deg, #09255E, #0E3A94);
  border-color: #2196F3;
}

.sticker-select-btn.uncommon {
  background: linear-gradient(135deg, #0B4666, #106D9E);
  border-color: #42A5F5;
}

.sticker-select-btn.common {
  background: linear-gradient(135deg, #6E06A8, #717F84);
  border-color: #9E9E9E;
}

/* Крестик удаления */
.sticker-clear-btn {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticker-clear-btn:hover {
  background: rgba(255, 71, 87, 0.4);
  transform: scale(1.05);
}

.sticker-selected-name {
  color: var(--color-primary-start);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 8. КАРТОЧКА ОБЪЯВЛЕНИЯ ===== */
.trade-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.trade-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-start);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trade-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trade-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.trade-card__img,
.trade-card__video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.trade-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.trade-card__no-image i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--color-primary-start);
}

.trade-card__no-image span {
  font-size: 1rem;
  font-weight: 600;
}

.trade-card__content {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 20px;
  flex: 1;
}

.trade-card__title {
  color: var(--color-text-white);
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.trade-card__link:hover {
  color: var(--color-primary-start);
}

/* Стили для заголовка карточки */
.trade-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: var(--color-text-white);
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.trade-card__link {
  color: var(--color-text-white);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.trade-card__link:hover {
  color: var(--color-primary-start);
}

/* Название скина */
.trade-card__skin-name {
  color: var(--color-primary-start);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Метка ST (StatTrak) - компактная с обводкой */
.trade-card__stattrak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5af19, #f12711);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  /* 👇 ОБВОДКА */
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

/* Альтернативный вариант с более яркой обводкой */
.trade-card__stattrak {
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

/* Для мобильных устройств */
@media (max-width: 576px) {
  .trade-card__title {
    font-size: 0.9rem;
  }

  .trade-card__skin-name {
    font-size: 0.8rem;
  }

  .trade-card__stattrak {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
}

/* Наклейки в карточке */
.trade-card__stickers {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  border: 1px dashed var(--color-primary-start);
}

.stickers__count {
  color: var(--color-primary-start);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.stickers__count i {
  margin-right: 5px;
}

.stickers__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stickers__list--real {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Бейдж наклейки */
/* Стили для бейджей наклеек с редкостью */
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sticker-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.sticker-badge i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sticker-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.sticker-badge--empty {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  text-shadow: none;
}

/* Дополнительные стили для разных редкостей (на всякий случай) */
.sticker-badge--common {
  background: linear-gradient(135deg, #6E06A8, #717F84);
}

.sticker-badge--uncommon {
  background: linear-gradient(135deg, #0B4666, #106D9E);
}

.sticker-badge--rare {
  background: linear-gradient(135deg, #09255E, #0E3A94);
}

.sticker-badge--epic {
  background: linear-gradient(135deg, #5d0760, #6E06A8);
}

.sticker-badge--legendary {
  background: linear-gradient(135deg, #670E50, #A1157C);
}

.sticker-badge--arcane {
  background: linear-gradient(135deg, #6F1113, #AC191E);
}

.sticker-badge:hover {
  background: rgba(102, 126, 234, 0.25);
  transform: translateY(-1px);
}

.trades-actions__create {
  white-space: nowrap;
  width: 100%;
}

/* Цена */
.trade-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
}

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

.trade-card__price-currency {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.trade-card__description {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Футер карточки */
.trade-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.trade-card__seller {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.trade-card__seller i {
  color: var(--color-primary-start);
}

.trade-card__seller:hover {
  color: var(--color-primary-start);
}

.trade-card__stats {
  display: flex;
  gap: 12px;
}

.trade-card__stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.trade-card__like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.trade-card__like-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-white);
}

.trade-card__like-btn.liked {
  color: #ff4757;
}

.trade-card__like-btn.liked:hover {
  color: #ff3742;
}

.trade-card__time {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

/* Кнопки в карточке */
.trade-card__buttons {
  position: relative;
  margin-top: auto;
  z-index: 10;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trade-card__btn,
.trade-card__edit-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 10px;
}

.trade-card__btn {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  border: none;
  color: white;
}

.trade-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.trade-card__btn:disabled {
  background: linear-gradient(135deg, #10b981, #059669);
  cursor: default;
  transform: none;
}

.trade-card__edit-btn {
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

.trade-card__edit-btn:hover {
  border-color: var(--color-primary-start);
  color: var(--color-primary-start);
  transform: translateY(-2px);
}

.trade-card__edit-btn:active,
.trade-card__btn:active {
  transform: scale(0.98);
}

/* Кнопки статусов заявок */
.btn--danger:disabled {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
  cursor: not-allowed;
}

.btn--success:disabled {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
  cursor: not-allowed;
}

.btn--secondary:disabled {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
  cursor: not-allowed;
}

/* ===== 9. СЕТКА ОБЪЯВЛЕНИЙ ===== */
.trades__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ===== 10. ПУСТОЕ СОСТОЯНИЕ ===== */
.trades__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
}

.trades__empty i {
  font-size: 3rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

.trades__empty h3 {
  color: var(--color-text-white);
  margin-bottom: 10px;
}

.trades__empty p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ===== 11. ПАГИНАЦИЯ ===== */
.pagination {
  margin-bottom: 40px;
}

.pagination__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination__link,
.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination__link:hover {
  background: var(--color-primary-start);
  color: white;
  border-color: var(--color-primary-start);
}

.pagination__current {
  background: var(--color-primary-start);
  color: white;
  border-color: var(--color-primary-start);
  font-weight: 600;
}

.pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: var(--color-text-muted);
}

/* ===== 12. МОДАЛЬНОЕ ОКНО РЕДАКТИРОВАНИЯ ===== */
.modal-edit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-edit__content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 25px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-edit__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.modal-edit__header h3 {
  color: var(--color-text-white);
  margin: 0;
  font-size: 1.3rem;
}

.modal-edit__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-edit__close:hover {
  color: #ff4757;
}

.modal-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  justify-content: flex-end;
}

.modal-edit__actions .btn {
  min-width: 120px;
}

.modal-edit__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Стили для форм внутри модалки */
.modal-edit .form__input {
  padding: 16px;
}

.modal-edit .form__input--video {
  margin-bottom: 20px;
}

.modal-edit .form__input--error {
  border-color: #ff4757 !important;
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.modal-edit .form__error {
  color: #ff4757;
  font-size: 0.8rem;
  display: block;
}

/* Превью медиа в модалке */
#editTradeModal .media-preview {
  width: 100%;
  max-width: 300px;
  height: 180px;
  border: 2px dashed var(--color-border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.2);
}

#editTradeModal .media-preview i {
  font-size: 3rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

#editTradeModal .media-preview img,
#editTradeModal .media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview {
  position: relative;
}

/* ===== 13. МОДАЛЬНОЕ ОКНО ВЫБОРА НАКЛЕЙКИ ===== */
.sticker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.sticker-modal__content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.sticker-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.sticker-modal__header h3 {
  color: var(--color-text-white);
  margin: 0;
  font-size: 1.3rem;
}

.sticker-modal__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.15s ease;
}

.sticker-modal__close:hover {
  color: #ff4757;
}

.sticker-modal__search {
  position: relative;
  margin-bottom: 15px;
}

.sticker-modal__search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.sticker-modal__search input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  font-size: 0.95rem;
}

.sticker-modal__search input:focus {
  outline: none;
  border-color: var(--color-primary-start);
}

.sticker-modal__list {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
}

.sticker-modal__group {
  margin-bottom: 15px;
}

.sticker-modal__group-title {
  padding: 8px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary-start);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  margin-bottom: 5px;
}

/* Стили для списка наклеек в модалке */
.sticker-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  animation: stickerFadeIn 0.2s ease forwards;
  opacity: 0;
}

@keyframes stickerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticker-list-item:last-child {
  border-bottom: none;
}

.sticker-list-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(4px);
  filter: brightness(1.05);
}

.sticker-list-name {
  color: var(--color-text-white);
  font-size: 0.95rem;
  font-weight: 500;
}

.sticker-list-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.sticker-list-badge:empty {
  display: none;
}

/* Анимация для разных элементов */
.sticker-list-item:nth-child(1) {
  animation-delay: 0s;
}

.sticker-list-item:nth-child(2) {
  animation-delay: 0.03s;
}

.sticker-list-item:nth-child(3) {
  animation-delay: 0.06s;
}

.sticker-list-item:nth-child(4) {
  animation-delay: 0.09s;
}

.sticker-list-item:nth-child(5) {
  animation-delay: 0.12s;
}

.sticker-list-empty {
  text-align: center;
  padding: 30px;
  color: var(--color-text-muted);
}

.sticker-modal__actions {
  display: flex;
  gap: 10px;
}

.sticker-modal__actions .btn {
  flex: 1;
}

/* Кастомный селект в модальном окне */
.sticker-modal .custom-select {
  width: 100%;
  margin-bottom: 15px;
}

.sticker-modal .custom-select__selected {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 12px 15px;
}

.sticker-modal .custom-select__options {
  top: 45px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10001;
}

.sticker-modal .custom-select__option {
  padding: 10px 15px;
  color: var(--color-text-white);
}

.sticker-modal .custom-select__option:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* ===== 14. ГРАДИЕНТЫ ДЛЯ РЕДКОСТЕЙ ===== */
/* Скины */
.rarity-common {
  background: linear-gradient(135deg, #6E06A8, #717F84);
}

.rarity-uncommon {
  background: linear-gradient(135deg, #0B4666, #106D9E);
}

.rarity-rare {
  background: linear-gradient(135deg, #09255E, #0E3A94);
}

.rarity-epic {
  background: linear-gradient(135deg, #A1157C, #6E06A8);
}

.rarity-legendary {
  background: linear-gradient(135deg, #670E50, #A1157C);
}

.rarity-arcane {
  background: linear-gradient(135deg, #6F1113, #AC191E);
}

.rarity-nameless {
  background: linear-gradient(135deg, #4a4a5a, #6a6a7a);
}

/* Наклейки */
.sticker-list-badge.common {
  background: linear-gradient(135deg, #6E06A8, #717F84);
  color: white;
}

.sticker-list-badge.uncommon {
  background: linear-gradient(135deg, #0B4666, #106D9E);
  color: white;
}

.sticker-list-badge.rare {
  background: linear-gradient(135deg, #09255E, #0E3A94);
  color: white;
}

.sticker-list-badge.epic {
  background: linear-gradient(135deg, #A1157C, #6E06A8);
  color: white;
}

.sticker-list-badge.legendary {
  background: linear-gradient(135deg, #670E50, #A1157C);
  color: white;
}

.sticker-list-badge.arcane {
  background: linear-gradient(135deg, #6F1113, #AC191E);
  color: white;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__content {
  background: var(--color-bg-card);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--color-border-light);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.modal__header h3 {
  margin: 0;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal__header h3 i {
  color: #667eea;
}

.modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: #ff4757;
}

.modal__body {
  padding: 20px 24px;
}

.buy-modal__trade-info {
  background: rgba(102, 126, 234, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.buy-modal__trade-info p {
  margin: 5px 0;
  color: var(--color-text-white);
}

.buy-modal__trade-info strong {
  color: #667eea;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--color-border-light);
}

.trade-card__buy-btn {
  width: 100%;
}

/* Кнопки действий внутри карточки */
.trade-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.trade-card__action-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trade-card__action-btn:disabled {
  cursor: not-allowed;
}

.trade-card__action-btn i {
  margin-right: 6px;
}

/* Статусные бейджи в карточках */
.trade-card__status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.status-reserved {
  background: rgba(255, 193, 7, 0.9);
  color: #000;
}

.status-reserved-by-me {
  background: rgba(46, 213, 115, 0.9);
  color: #000;
}

.status-sold {
  background: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* Информация о резервации */
.reservation-info {
  text-align: center;
  padding: 10px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 10px;
  width: 100%;
}

.reservation-info p {
  margin: 0 0 5px 0;
  font-size: 12px;
  color: #ffc107;
}

.reservation-info small {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  color: #aaa;
}

/* ===== 16. ВСПОМОГАТЕЛЬНЫЕ СТИЛИ ===== */
.filter__group--skin {
  margin-bottom: 10px;
}

.rarity-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  color: white;
}

.skin-autocomplete__loading {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.trades__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

/* ===== 15. АДАПТИВНОСТЬ ===== */
/* Планшеты (до 992px) */
@media (max-width: 992px) {
  .trades-layout {
    grid-template-columns: 1fr;
  }

  .trades-sidebar {
    position: static;
    max-height: none;
  }

  .trades-sidebar .filters__section {
    max-height: none;
  }

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

  .filters__actions,
  .filters__more {
    grid-column: span 2;
  }

  .filters__multiselect-dropdown {
    position: absolute;
    width: 100%;
    max-height: 280px;
  }

  .stickers-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
  .filters__section {
    grid-template-columns: 1fr;
  }

  .filters__actions,
  .filters__more {
    grid-column: span 1;
  }

  .trades__grid {
    grid-template-columns: 1fr;
  }

  .trades-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
  }

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

  .pagination__link,
  .pagination__current {
    min-width: 35px;
    height: 35px;
    font-size: 0.85rem;
    padding: 0 8px;
  }

  .sticker-modal__content {
    padding: 20px;
  }

  .stickers-selector {
    grid-template-columns: 1fr;
  }

  .sticker-select-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticker-select-label {
    min-width: auto;
  }

  .sticker-select-btn {
    width: 100%;
  }
}

/* Маленькие мобильные (до 576px) */
@media (max-width: 576px) {
  .trade-card__buttons {
    flex-direction: column;
  }

  .pagination__list {
    gap: 5px;
  }

  .pagination__link,
  .pagination__current {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

/* Адаптив для наклеек */
@media (max-width: 480px) {
  .stickers__list--real {
    flex-direction: column;
    gap: 6px;
  }

  .sticker-badge {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .sticker-badge span {
    flex: 1;
    text-align: left;
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  .sticker-badge {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .sticker-badge {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }
}

@media (min-width: 901px) {
  .sticker-badge {
    flex: 0 1 auto;
  }
}

/* Адаптив */
@media (max-width: 480px) {
  .modal__actions {
    flex-direction: column;
  }

  .modal__actions .btn {
    width: 100%;
  }
}