* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  font-size: 16px;
  line-height: 1.4;
}

body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.user-id-display {
  /* background: rgba(255,255,255,0.1);  */
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
  display: none;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.user-id-display:hover {
  /* background: rgba(255,255,255,0.15); */
  transform: scale(1.02);
}

#userInfoFlipContainer.flipping {
  animation: flip 0.3s ease-in-out;
}

@keyframes flip {
  0% {
    transform: perspective(400px) rotateY(0deg);
  }
  50% {
    transform: perspective(400px) rotateY(90deg);
  }
  100% {
    transform: perspective(400px) rotateY(0deg);
  }
}

.user-id-display h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
  user-select: none;
}

.user-id-display .user-id {
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  color: #fff;
  font-weight: bold;
  user-select: all;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.user-id-display .user-id:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.user-id-display .user-id:active {
  transform: scale(0.98);
}

.content {
  padding: 0px 30px 30px 30px;
}

.user-search {
  /* margin-bottom: 30px;  */
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
}

.user-search input {
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  text-align: center;
}

.user-search input:focus {
  border-color: #667eea;
}

.user-search button {
  padding: 12px 25px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.user-search button:hover {
  background: #5a6fd8;
}

.tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.tab {
  padding: 15px 25px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.tab.active {
  border-bottom-color: #667eea;
  color: #667eea;
}

.cheater-checker-tab {
  text-decoration: none;
  color: inherit;
}

.cheater-checker-tab:hover {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.3rem 1rem rgba(192, 192, 192, 0.1);
  background: #f093db;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.achievement {
  background: #f8f9fa;
  /* padding: 20px;  */
  /* border-radius: 10px;  */
  border-left: 3px solid #28a745;
  transition: transform 0.3s;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* border: 2px solid transparent; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.achievement:hover {
  transform: translateY(-3px);
}

.achievement.locked {
  border-left-color: #6c757d;
  opacity: 0.6;
}

.leaderboard {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.leaderboard-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  position: relative;
}

.leaderboard-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-item:hover::after {
  content: "👆 Жмакни, чтобы посмотреть достижения";
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #667eea;
  background: white;
  padding: 5px 10px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
  white-space: nowrap;
}

/* Контейнер для аватарки с индикатором онлайн */
.avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
}

.avatar-container img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Индикатор онлайн статуса */
.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.status-indicator.online {
  background-color: #43b581; /* зеленый */
}

.status-indicator.idle {
  background-color: #faa61a; /* желтый */
}

.status-indicator.dnd {
  background-color: #f04747; /* красный */
}

.rank {
  font-weight: bold;
  color: #667eea;
  font-size: 1.2rem;
  margin-right: 10px;
}

.settings-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.save-btn {
  background: #28a745;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.save-btn:hover {
  background: #218838;
}

/* Стили для карточек настроек */
.settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.setting-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 250px; /* Минимальная высота для карточек */
}

.setting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.setting-card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.setting-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1; /* Занимает все доступное пространство */
}

.setting-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.setting-card-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1; /* Растягивается, отталкивая кнопки вниз */
}

.setting-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
}

/* Контейнер для кнопок и селектов внизу карточки */
.setting-card-actions {
  width: 100%;
  margin-top: auto; /* Прижимается к низу */
}

.setting-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  background: #f8f9fa;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  margin-top: 0; /* Убираем margin-top, так как он в контейнере */
}

.setting-select:hover {
  border-color: #667eea;
  background: white;
}

.setting-select:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Индикатор сохранения настроек */
.setting-save-indicator {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 32px;
}

.setting-save-indicator.saving {
  opacity: 1;
  background: rgba(255, 193, 7, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.setting-save-indicator.saved {
  opacity: 1;
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.setting-save-indicator.error {
  opacity: 1;
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.save-settings-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) rgb(139, 0, 0);
  margin-top: 10px;
}

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

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

/* Стили для карточки выхода */
.logout-card {
  border: 2px solid #ff4444;
}

.logout-card:hover {
  border-color: #ff4444;
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
}

.logout-btn {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

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

/* Стили для админ-панели */
.admin-panel {
  margin-top: 40px;
  /* background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
  border: 3px solid #ffa500;
  overflow: hidden;
}

.admin-panel-header {
  /* background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); */
  color: white;
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid #ffa500;
}

.admin-panel-header h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-panel-header p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
}

.admin-panel-content {
  padding: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  width: auto;
}

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

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

.admin-btn-icon {
  font-size: 18px;
}

.admin-btn-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.admin-btn-text strong {
  font-size: 14px;
  color: white;
  font-weight: 600;
}

.admin-btn-text small {
  display: none;
}

.loading {
  text-align: center;
  padding: 50px;
  color: #666;
}

.error {
  color: #dc3545;
  text-align: center;
  padding: 20px;
}

/* Модальное окно - адаптивное */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Модальное окно загрузки - всегда по центру */
#loadingModal {
  overflow: hidden !important;
  padding: 0 !important;
  align-items: center !important;
}

/* Индикатор загрузки модального окна */
.loading-modal-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 200px;
}

.loading-spinner {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-image {
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

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

.loading-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 3s linear infinite;
}

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

.loading-dots .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.loading-dots .dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
  top: 10%;
  right: 10%;
  animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 0.4s;
}

.loading-dots .dot:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 0.6s;
}

.loading-dots .dot:nth-child(5) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.8s;
}

.loading-dots .dot:nth-child(6) {
  bottom: 10%;
  left: 10%;
  animation-delay: 1s;
}

.loading-dots .dot:nth-child(7) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 1.2s;
}

.loading-dots .dot:nth-child(8) {
  top: 10%;
  left: 10%;
  animation-delay: 1.4s;
}

.loading-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.modal-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Контейнер для модальной аватарки с индикатором онлайн */
.modal-avatar-container {
  position: relative;
  width: 60px;
  height: 60px;
}

.modal-avatar-container img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Индикатор онлайн статуса для модалки (больше размер) */
.modal-avatar-container .status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.modal-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.modal-achievement {
  /* background: #f8f9fa; */
  /* padding: 15px; */
  /* border-radius: 10px; */
  border-left: 5px solid #28a745;
  /* background: white; */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /* border: 2px solid transparent; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.special-achievement {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  border-left: 5px solid #ff6b35;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.special-achievement::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.special-achievement:hover {
  transform: translateY(-3px);
}

.special-achievement:hover::before {
  animation: shimmer 1.5s ease-in-out;
  opacity: 1;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Анимация вертикального флипа для имени/ID пользователя */
@keyframes flipVertical {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.user-flip-container:hover .user-flip-text {
  color: #667eea;
}

/* Стили для специального достижения Die my Darling */
.achievement[data-achievement-id*="die-my-darling"],
.modal-achievement[data-achievement-id*="die-my-darling"] {
  border-left: 5px solid #8b0000 !important;
  transition: all 0.3s ease;
}

.achievement[data-achievement-id*="die-my-darling"]:hover,
.modal-achievement[data-achievement-id*="die-my-darling"]:hover {
  box-shadow:
    0 0 20px rgba(139, 0, 0, 0.6),
    0 0 40px rgba(139, 0, 0, 0.4);
  border-left-color: #dc143c !important;
}

/* Стили для вкладок в модальном окне */
.modal-tabs {
  display: flex;
  background: #f8f9fa;
  /* margin: 20px 0; */
  overflow: hidden;
}

.modal-tab-button {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
}

.modal-tab-button:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.modal-tab-button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.modal-tab-content {
  min-height: 300px;
}

.modal .stats-grid .stat-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #667eea;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal .stats-grid .stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.modal .stats-grid .stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Стили для меню удаления сообщений */
.delete-messages-menu {
  position: absolute;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  min-width: 200px;
}

.delete-messages-menu h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text-color);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.delete-messages-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin: 5px 0;
  background: var(--button-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.delete-messages-menu button:hover {
  background: var(--button-hover-bg);
  transform: translateX(3px);
}

.delete-messages-menu button:active {
  transform: scale(0.98);
}

/* Стили для модального окна результатов удаления */
.delete-result-modal {
  max-width: 600px;
  width: 90%;
}

.delete-result-status {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}

.delete-result-status.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.delete-result-status.warning {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
  border: 2px solid rgba(255, 152, 0, 0.3);
}

.status-icon {
  font-size: 48px;
  animation: scaleIn 0.5s ease-out;
}

.status-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.delete-result-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.info-value {
  font-weight: 600;
  color: var(--text-color);
}

.info-value.success-count {
  color: #4caf50;
  font-size: 18px;
}

.info-value.error-count {
  color: #ff9800;
  font-size: 18px;
}

.delete-result-errors {
  margin-bottom: 20px;
}

.delete-result-errors h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.errors-list {
  max-height: 300px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
}

.error-item {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-color);
}

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

.close-result-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ===== BUG REPORTS ===== */

.bug-badge {
  background: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: bold;
  margin-left: 5px;
  min-width: 18px;
  text-align: center;
  display: inline-block;
  line-height: 1.4;
}

.bug-filter-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

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

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

/* Анимации иконки кнопки "Баги" */
@keyframes bug-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes bug-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bug-btn--new {
  border-color: rgba(244, 67, 54, 0.5) !important;
  box-shadow: 0 0 12px rgba(244, 67, 54, 0.3);
}

.bug-btn--in-progress {
  border-color: rgba(76, 175, 80, 0.5) !important;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

/* Модальные окна багрепортов */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.modal-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

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

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

.steam-stats-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.steam-stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.steam-stats-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.steam-stats-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.steam-stats-title svg {
  color: #1b2838;
  flex-shrink: 0;
}

.steam-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.steam-stat-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  border-left: 3px solid #667eea;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.steam-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
}

.steam-stat-label {
  font-size: 0.78rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== FACEIT БЛОК ===== */

.faceit-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.faceit-block-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.faceit-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.faceit-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 70px;
  border-left: 3px solid #ff6600;
}

.faceit-stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.faceit-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-top: 2px;
}

.faceit-ban-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 68, 68, 0.1);
  color: #cc0000;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: center;
}

/* Цвета уровней FACEIT (1–10) */
.faceit-level-1,
.faceit-level-2 { color: #808080; }
.faceit-level-3,
.faceit-level-4 { color: #ffd700; }
.faceit-level-5,
.faceit-level-6 { color: #ff8c00; }
.faceit-level-7,
.faceit-level-8 { color: #ff4500; }
.faceit-level-9,
.faceit-level-10 { color: #cc0000; }

/* Тёмные темы — адаптация */
body[data-theme="metal"] .steam-stats-card,
body[data-theme="discord"] .steam-stats-card,
body[data-theme="steam"] .steam-stats-card,
body[data-theme="die-my-darling"] .steam-stats-card {
  background: var(--card-bg, rgba(255, 255, 255, 0.07));
  border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

body[data-theme="metal"] .steam-stat-item,
body[data-theme="discord"] .steam-stat-item,
body[data-theme="steam"] .steam-stat-item,
body[data-theme="die-my-darling"] .steam-stat-item,
body[data-theme="metal"] .faceit-stat,
body[data-theme="discord"] .faceit-stat,
body[data-theme="steam"] .faceit-stat,
body[data-theme="die-my-darling"] .faceit-stat {
  background: rgba(255, 255, 255, 0.07);
}

body[data-theme="metal"] .steam-stats-title,
body[data-theme="discord"] .steam-stats-title,
body[data-theme="steam"] .steam-stats-title,
body[data-theme="die-my-darling"] .steam-stats-title,
body[data-theme="metal"] .steam-stat-value,
body[data-theme="discord"] .steam-stat-value,
body[data-theme="steam"] .steam-stat-value,
body[data-theme="die-my-darling"] .steam-stat-value,
body[data-theme="metal"] .faceit-block-title,
body[data-theme="discord"] .faceit-block-title,
body[data-theme="steam"] .faceit-block-title,
body[data-theme="die-my-darling"] .faceit-block-title,
body[data-theme="metal"] .faceit-stat-value,
body[data-theme="discord"] .faceit-stat-value,
body[data-theme="steam"] .faceit-stat-value,
body[data-theme="die-my-darling"] .faceit-stat-value {
  color: #e0e0e0;
}

body[data-theme="metal"] .steam-stats-title svg,
body[data-theme="discord"] .steam-stats-title svg,
body[data-theme="steam"] .steam-stats-title svg,
body[data-theme="die-my-darling"] .steam-stats-title svg {
  color: #aaa;
}

body[data-theme="metal"] .faceit-block,
body[data-theme="discord"] .faceit-block,
body[data-theme="steam"] .faceit-block,
body[data-theme="die-my-darling"] .faceit-block {
  border-top-color: rgba(255, 255, 255, 0.1);
}
