/* ===== Чекер читеров — Стили ===== */

/* Основной контейнер */
.checker-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Шапка */
.checker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.back-btn {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

.header-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 3px;
}

.header-tab {
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.header-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.move-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.move-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.stats-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.stats-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title h1 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: scale(1.1);
}

/* Предупреждение авторизации */
.auth-warning {
  text-align: center;
  padding: 15px;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #ff9800;
  font-weight: 500;
}

.filter-notice {
  text-align: center;
  padding: 10px 15px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.25);
  border-radius: 10px;
  margin-bottom: 15px;
  color: #a0b0ff;
  font-size: 13px;
}

/* Секция ввода */
.input-section {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

.search-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-toggle-btn:hover {
  border-color: #667eea;
  color: #a0b0ff;
  background: rgba(102, 126, 234, 0.1);
}

.search-toggle-btn.active {
  border-color: #667eea;
  color: #a0b0ff;
  background: rgba(102, 126, 234, 0.2);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.search-toggle-btn .icon {
  width: 20px;
  height: 20px;
}

.search-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-bottom 0.35s ease;
}

.search-section.open {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 15px;
}

.steam-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
}

.steam-input:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.steam-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.check-btn,
.mass-check-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.check-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.check-btn:active {
  transform: translateY(0);
}

.mass-check-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mass-check-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Loading indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  color: #b0b0b0;
  font-size: 1rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Секция результатов */
.results-section {
  margin-top: 10px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.results-column {
  min-height: 200px;
}

.column-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
}

.banned-title {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.clean-title {
  background: rgba(0, 204, 68, 0.15);
  border: 1px solid rgba(0, 204, 68, 0.3);
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Profile Card */
.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-card.banned {
  border-left: 4px solid #ff4444;
}

.profile-card.clean {
  border-left: 4px solid #00cc44;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-info {
  flex: 1;
}

.card-checker {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.card-name:hover {
  color: #667eea;
}

.card-name .expand-icon {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.card-name.expanded .expand-icon {
  transform: rotate(90deg);
}

/* Кнопка удаления (admin) */
.card-delete-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.profile-card:hover .card-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.card-delete-btn:hover {
  background: rgba(255, 68, 68, 0.4);
  transform: scale(1.1);
}

/* Детали карточки (скрыты по умолчанию) */
.card-details {
  display: none;
  padding: 12px 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-details.visible {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.85rem;
}

.detail-label {
  color: rgba(255, 255, 255, 0.6);
}

.detail-value {
  font-weight: 500;
  color: #e0e0e0;
}

.detail-value.danger {
  color: #ff4444;
}

.detail-value.safe {
  color: #00cc44;
}

/* Кнопки карточки */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card-action-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-link-btn {
  background: rgba(102, 126, 234, 0.3);
  color: #a0b0ff;
  border: 1px solid rgba(102, 126, 234, 0.5);
}

.profile-link-btn:hover {
  background: rgba(102, 126, 234, 0.5);
  color: #fff;
}

.discord-publish-btn {
  background: rgba(114, 137, 218, 0.3);
  color: #b0c0ff;
  border: 1px solid rgba(114, 137, 218, 0.5);
}

.discord-publish-btn:hover {
  background: rgba(114, 137, 218, 0.5);
  color: #fff;
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #1e1e2e;
  border-radius: 30px;
  width: 100%;
  max-width: 550px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px 15px 0 0;
}

.modal-box-header h2 {
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-box-body {
  padding: 25px;
}

/* Массовая проверка */
.mass-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  margin-top: 12px;
}

.mass-textarea:focus {
  border-color: #667eea;
}

.mass-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.mass-counter {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.mass-counter.over-limit {
  color: #ff4444;
}

.start-mass-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-mass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-mass-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Информационная модалка */
.info-modal-body h3 {
  color: #e0e0e0;
  font-size: 1rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

.info-modal-body h3:first-child {
  margin-top: 0;
}

.info-modal-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-modal-body ul li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 4px 0;
  padding-left: 15px;
  position: relative;
}

.info-modal-body ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
}

.info-modal-body code {
  background: rgba(102, 126, 234, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #a0b0ff;
}

.info-modal-body a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.info-modal-body a:hover {
  color: #a0b0ff;
  text-decoration: underline;
}

/* Иконки внутри кнопок и заголовков наследуют цвет текста */
.check-btn .icon,
.mass-check-btn .icon,
.start-mass-btn .icon,
.back-btn .icon,
.info-btn .icon,
.card-action-btn .icon,
.modal-box-header .icon,
.info-modal-body h3 .icon,
.checker-header .icon {
  color: inherit;
}

/* Диалог подтверждения */
.confirm-box {
  max-width: 400px;
}

.confirm-header {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.confirm-body {
  text-align: center;
}

.confirm-body p {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-delete-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.confirm-cancel-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.confirm-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Уведомление */
.notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateX(-50%) translateY(0);
}

.notification.success {
  background: rgba(0, 204, 68, 0.9);
  color: white;
}

.notification.error {
  background: rgba(255, 68, 68, 0.9);
  color: white;
}

.notification.info {
  background: rgba(102, 126, 234, 0.9);
  color: white;
}

.notification.warning {
  background: rgba(255, 170, 0, 0.9);
  color: white;
}

/* Анимация удаления */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Селектор количества на страницу */
.page-size-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 15px;
}

.page-size-section label {
  color: #aaa;
  font-size: 0.9rem;
}

.page-size-select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-size-select:hover {
  border-color: #667eea;
}

.page-size-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.page-size-select option {
  background: #1a1a2e;
  color: #e0e0e0;
}

/* Пагинация */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.pagination button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  color: #667eea;
}

.pagination button.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination button.arrow {
  font-size: 1rem;
  font-weight: bold;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #aaa;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: default;
  user-select: none;
}

/* ===== Инпут с крестиком очистки ===== */

.input-clear-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.input-clear-wrapper .steam-input {
  flex: 1;
  min-width: 0;
  padding-right: 38px; /* место под крестик */
}

.input-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: none; /* скрыт пока поле пустое */
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.input-clear-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.input-clear-btn.visible {
  display: flex;
}

/* Адаптивная вёрстка */
@media (max-width: 768px) {
  .checker-container {
    padding: 5px 10px;
  }

  .checker-header {
    padding: 5px 15px;
    flex-direction: row;
    gap: 10px;
  }

  .header-title h1 {
    font-size: 1.2rem;
  }

  .input-section {
    flex-direction: column;
    padding: 10px 15px;
  }

  .steam-input {
    width: 100%;
    min-width: unset;
  }

  .check-btn,
  .mass-check-btn {
    width: 100%;
  }

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

  .modal-box {
    max-width: 100%;
    margin: 10px;
  }
}

/* ===== CS2 / FACEIT — Сигналы и секции ===== */

/* Бейдж "⚠️ Подозрительно" в шапке карточки */
.suspicious-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid rgba(255, 170, 0, 0.5);
  color: #ffaa00;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}

.updated-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.5);
  color: #a0b0ff;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}

.name-history-btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #81c784;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.name-history-btn:hover {
  background: rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.6);
}

.name-history-btn--empty {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
  pointer-events: none;
}

.source-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}

.source-badge--external {
  background: rgba(156, 39, 176, 0.2);
  border: 1px solid rgba(156, 39, 176, 0.5);
  color: #ce93d8;
}

.source-badge--reports {
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #ffb74d;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.filter-tab.active {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  color: #a0b0ff;
}

.filter-tab-count {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 2px;
}

/* Блок сигналов подозрительности внутри card-details */
.signals-section {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(255, 170, 0, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.signal-item {
  font-size: 0.82rem;
  color: #ffcc55;
  padding: 2px 0;
}

/* CS2-секция в деталях карточки */
.cs2-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs2-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* FACEIT-секция в деталях карточки */
.faceit-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faceit-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Бейдж бана FACEIT внутри заголовка секции */
.faceit-ban-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(255, 68, 68, 0.2);
  border: 1px solid rgba(255, 68, 68, 0.5);
  color: #ff6666;
  text-transform: none;
  letter-spacing: 0;
}

/* Цвета уровней FACEIT */
.faceit-level-1,
.faceit-level-2,
.faceit-level-3,
.faceit-level-4 { color: #aaa; }

.faceit-level-5,
.faceit-level-6,
.faceit-level-7 { color: #f5a623; }

.faceit-level-8,
.faceit-level-9 { color: #e75454; }

.faceit-level-10 { color: #ff3333; font-weight: 700; }

/* ===== ИЗБРАННОЕ И ЗАМЕТКИ ===== */

/* Звёздочка избранного */
.card-fav-btn {
  position: static;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.25);
  background: none;
  border: none;
  padding: 2px;
  line-height: 1;
}

.card-fav-btn:hover {
  color: rgba(255, 193, 7, 0.6);
  transform: scale(1.2);
}

.card-fav-btn.active {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

/* Карандаш-индикатор заметок */
.card-pencil {
  display: inline-flex;
  align-items: center;
  color: #ffc107;
  font-size: 14px;
  opacity: 0.8;
}

.card-pencil .icon {
  width: 14px;
  height: 14px;
}

/* Контейнер действий в шапке карточки */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Секция заметок */
.notes-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.note-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.note-content {
  flex: 1;
  min-width: 0;
}

.note-text {
  font-size: 0.85rem;
  color: #d0d0d0;
  word-break: break-word;
  line-height: 1.4;
  white-space: pre-wrap;
}

.note-link {
  color: #6ea8fe;
  text-decoration: underline;
  word-break: break-all;
}

.note-link:hover {
  color: #93c5fd;
}

.note-date {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.note-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.note-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.note-action-btn:hover {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.1);
}

.note-action-btn .icon {
  width: 12px;
  height: 12px;
}

.note-delete-btn:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.15);
}

.note-delete-confirm:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
}

.note-delete-hint {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Поле ввода заметки */
.note-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-end;
}

.note-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.note-input:focus {
  border-color: rgba(102, 126, 234, 0.5);
}

.note-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.note-save-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.note-save-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.note-textarea {
  resize: none;
  min-height: 34px;
  max-height: 150px;
  font-family: inherit;
  line-height: 1.4;
  overflow-y: auto;
}

.note-edit-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.note-edit-buttons {
  display: flex;
  gap: 8px;
}

.note-cancel-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0a0;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.note-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.note-edit-input {
  flex: 1;
}

/* ===== СТАТИСТИКА ===== */

.stats-loading {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.stats-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-section h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #e0e0e0;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.stats-value {
  font-weight: 600;
  color: #e0e0e0;
}

.stats-value.stats-danger {
  color: #ff6666;
}

.stats-total {
  border-color: rgba(102, 126, 234, 0.3);
}

.stats-achievements {
  border-color: rgba(255, 193, 7, 0.3);
}

.stats-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ===== STATS ACHIEVEMENTS GRID ===== */

.stats-ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-ach-card {
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
  cursor: default;
  transition: border-color 0.2s;
}

.stats-ach-card:hover {
  border-color: rgba(255, 193, 7, 0.35);
}

.stats-ach-points {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffc107;
  background: rgba(255, 193, 7, 0.15);
  padding: 1px 6px;
  border-radius: 8px;
}

.stats-ach-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 4px;
}

.stats-ach-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.stats-ach-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.stats-ach-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.stats-ach-arrow:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
}

.stats-ach-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.stats-ach-page {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== МОДАЛКА ПЕРЕМЕЩЕНИЯ ПРОФИЛЕЙ ===== */

.move-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.move-profile-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.move-profile-item input[type="checkbox"] {
  accent-color: #667eea;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.move-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.move-profile-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* ===== СВЯЗИ МЕЖДУ АККАУНТАМИ ===== */

.links-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.links-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.links-btn.has-links {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

.links-btn.has-links:hover {
  background: rgba(236, 72, 153, 0.35);
  color: #fff;
}

.link-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.link-group-header {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.link-group-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 768px) {
  .link-group-cards {
    grid-template-columns: 1fr;
  }
}

.link-group-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-group-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.link-group-member img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.link-group-member-info {
  flex: 1;
  min-width: 0;
}

.link-group-member-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-group-member-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.card-links-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.card-links-section-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.card-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-links-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a0b0ff;
  flex-wrap: wrap;
}

.card-links-name {
  color: #a0b0ff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.card-links-name:hover {
  text-decoration: underline;
  color: #c0c8ff;
}

.card-links-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.link-group-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.link-group-name {
  cursor: pointer;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.link-group-name:hover {
  color: #a0b0ff;
  border-bottom-color: #a0b0ff;
}

.link-group-name-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #667eea;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: inherit;
  font-weight: 600;
  padding: 2px 8px;
  outline: none;
  width: 200px;
}

/* ===== ДРУЗЬЯ ЧИТЕРА ===== */

.friends-btn {
  background: rgba(102, 126, 234, 0.15);
  color: #a0b0ff;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.friends-btn:hover {
  background: rgba(102, 126, 234, 0.3);
}

.friends-refresh-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  min-width: auto;
}

.friends-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.friends-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

.friends-loading {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.friend-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.friend-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 4px;
}

.friend-links {
  font-size: 0.8rem;
}

.friend-link {
  color: #6ea8fe;
  text-decoration: underline;
  word-break: break-all;
}

.friend-link:hover {
  color: #93c5fd;
}

.friend-also {
  margin-top: 3px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.friend-also-link {
  font-size: 0.75rem;
}

.friends-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.friends-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.friends-arrow:hover:not(:disabled) {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
}

.friends-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.friends-search-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  margin-right: 10px;
  flex-shrink: 0;
}

.friends-search-toggle:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  color: white;
}

.friends-search-toggle.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  color: white;
}

.friends-search-toggle .icon {
  width: 14px;
  height: 14px;
}

.friends-search-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 15px;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.friends-search-section.open {
  max-height: 60px;
  opacity: 1;
  padding: 8px 15px;
}

.friends-search-section .steam-input {
  min-width: 100%;
  width: 100%;
}

.links-info-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 15px;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.links-info-section.open {
  max-height: 80vh;
  overflow-y: auto;
  opacity: 1;
  padding: 0 15px;
}

.links-info-toggle {
  margin-right: 5px;
  margin-left: auto;
}

.friends-page-num {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.undo-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 2px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
  transition: all 0.2s;
}

.undo-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.friend-add-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.friend-add-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  color: white;
}

.friend-add-btn.friend-add-done {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.6);
  color: #4CAF50;
  cursor: default;
}

.friend-add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
