/* =========================================
   АДМИН-ПАНЕЛЬ (СОВРЕМЕННЫЙ ДИЗАЙН)
   ========================================= */
.admin-tabs-nav { 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap; 
  background: rgba(0, 0, 0, 0.2); 
  padding: 8px; 
  border-radius: 16px; 
  border: 1px solid var(--glass-border); 
  margin-bottom: 24px; 
}

.admin-tab-btn { 
  padding: 10px 20px; 
  background: transparent; 
  border-radius: 12px; 
  color: var(--text-muted); 
  font-weight: 700; 
  font-size: 14px; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.admin-tab-btn:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.admin-tab-btn.active { 
  background: linear-gradient(135deg, var(--accent-primary), #1d4ed8); 
  color: white; 
  box-shadow: 0 4px 15px var(--accent-glow); 
}

.admin-page { display: none; animation: fadeIn 0.4s ease; }
.admin-page.active { display: block; }

/* Сетка статистики */
.admin-stat-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 16px; 
  margin-bottom: 24px;
}

.admin-stat-card { 
  background: var(--glass-bg); 
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); 
  border-radius: 20px; 
  padding: 24px; 
  text-align: center; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.admin-stat-card:hover { 
  transform: translateY(-5px); 
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.1);
}

.admin-stat-card .num { 
  font-size: 32px; 
  font-weight: 900; 
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px; 
}

.admin-stat-card .lbl { 
  font-size: 12px; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  font-weight: 700; 
}

/* Списки / Таблицы */
.admin-list { display: flex; flex-direction: column; gap: 12px; }

.admin-list-item { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  padding: 16px 20px; 
  background: rgba(255, 255, 255, 0.02); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  border-radius: 16px; 
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
  cursor: pointer; 
}

.admin-list-item:hover { 
  background: rgba(59, 130, 246, 0.08); 
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.item-avatar { 
  width: 48px; height: 48px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, #1e40af, #3b82f6); 
  display: flex; align-items: center; justify-content: center; 
  font-weight: 800; font-size: 20px; color: white; 
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  flex-shrink: 0; 
}

.item-main { flex: 1; min-width: 120px; }
.item-name { font-weight: 700; font-size: 16px; color: white; }
.item-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

.item-stats { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.item-stats b { color: var(--accent-secondary); font-weight: 800; font-size: 15px; }

.item-actions { display: flex; gap: 10px; }

/* Формы */
.admin-form-row { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 16px; 
  background: var(--glass-bg); 
  backdrop-filter: var(--glass-blur);
  padding: 24px; 
  border-radius: 20px; 
  border: 1px solid var(--glass-border); 
  margin-bottom: 24px; 
  align-items: center; 
}

.admin-form-row input, .admin-form-row select { 
  background: rgba(0, 0, 0, 0.25); 
  border: 1px solid var(--glass-border); 
  padding: 14px 16px; 
  border-radius: 12px; 
  color: white; 
  font-size: 14px; 
  font-weight: 500;
  outline: none; 
  width: 100%; 
  transition: all 0.3s;
}

.admin-form-row input:focus, .admin-form-row select:focus { 
  border-color: var(--accent-secondary); 
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.admin-form-row button { height: 48px; }

.admin-form-row input[type="file"] { padding: 10px; cursor: pointer; }
.admin-form-row input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--accent-primary), #1d4ed8);
  border: none; padding: 8px 16px; border-radius: 8px;
  color: white; font-weight: 700; cursor: pointer; margin-right: 12px;
}

/* Модалка профиля игрока */
.profile-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.profile-modal-stat { background: rgba(0,0,0,0.2); padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); }
.profile-modal-stat .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.profile-modal-stat .val { font-size: 20px; font-weight: 900; color: var(--accent-secondary); margin-top: 6px; }

.profile-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.profile-actions-grid button { width: 100%; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }

@media (max-width: 640px) {
  .item-stats { display: none; } /* Скрываем на мобильных для аккуратности */
  .profile-modal-grid { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; padding: 20px; }
  .admin-stat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .admin-stat-card { padding: 16px; }
  .admin-stat-card .num { font-size: 24px; }
}