body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #101c2c 0%, #162447 100%);
  color: #e6e9f0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 16px;
}

h1, h2 {
  color: #6ea8fe;
  margin-top: 0;
  letter-spacing: 1px;
  word-break: break-word;
}

a {
  color: #6ea8fe;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  word-break: break-word;
}

a:hover {
  color: #a0c4ff;
  text-decoration: underline;
}

button, a.button {
  background: linear-gradient(90deg, #233554 0%, #1e2a47 100%);
  color: #e6e9f0;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  margin: 1em 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 320px;
}

button:hover, a.button:hover {
  background: linear-gradient(90deg, #2d4373 0%, #233554 100%);
  color: #a0c4ff;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.25);
}

pre {
  background: #1a233a;
  color: #b6c9f0;
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
  font-size: 0.95em;
  word-break: break-all;
}

::-webkit-scrollbar {
  width: 8px;
  background: #162447;
}
::-webkit-scrollbar-thumb {
  background: #233554;
  border-radius: 8px;
}

.nav-bar {
  display: flex;
  align-items: center;
  background: rgba(16, 28, 44, 0.95);
  border-radius: 12px;
  padding: 0.7em 1.5em;
  margin-bottom: 2em;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  flex-wrap: wrap;
  gap: 0.5em;
}

.nav-link {
  color: #a0c4ff;
  font-weight: 500;
  margin-right: 1.5em;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.08em;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.nav-link:last-child {
  margin-right: 0;
}

.nav-link:hover {
  color: #6ea8fe;
  text-decoration: underline;
}

/* --- Admin Panel Custom Styles --- */
.admin-root {
  display: flex;
  min-height: 100vh;
  background: none;
  gap: 2.5em;
}

.admin-sidebar {
  min-width: 240px;
  max-width: 280px;
  background: rgba(16, 28, 44, 0.98);
  color: #e6e9f0;
  border-radius: 0 18px 18px 0;
  box-shadow: 4px 0 24px 0 rgba(31,38,135,0.10);
  padding: 2.5em 1.5em 2em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 0;
}

.admin-sidebar-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #6ea8fe;
  margin-bottom: 2em;
  letter-spacing: 1px;
  word-break: break-word;
}

.admin-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2em 0;
  width: 100%;
}

.admin-sidebar-link {
  display: block;
  padding: 0.7em 1em;
  border-radius: 8px;
  color: #e6e9f0;
  font-weight: 500;
  background: none;
  transition: background 0.2s, color 0.2s;
  word-break: break-word;
}

.admin-sidebar-list li.active .admin-sidebar-link,
.admin-sidebar-link:hover {
  background: #233554;
  color: #6ea8fe;
}
.admin-sidebar-level {
  margin-top: auto;
  font-size: 0.98em;
  color: #a0c4ff;
  background: #1a233a;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-weight: 600;
}
.admin-content {
  flex: 1;
  background: rgba(22, 36, 71, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
  padding: 2.5em 2.5em 2em 2.5em;
  margin: 2em 2em 2em 0;
  min-width: 340px;
  max-width: 100%;
  overflow-x: auto;
}
.admin-content h2, .admin-content h1 {
  color: #6ea8fe;
  font-size: 2em;
  margin-bottom: 1.2em;
  letter-spacing: 1px;
  word-break: break-word;
}
.admin-lang-switch {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.admin-lang-btn {
  background: #233554;
  color: #e6e9f0;
  border: none;
  border-radius: 8px;
  padding: 0.4em 1.1em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  outline: none;
  margin-bottom: 0.5em;
}
.admin-lang-btn.active, .admin-lang-btn:hover {
  background: #6ea8fe;
  color: #162447;
}
.admin-form {
  margin-top: 2em;
}
.admin-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.2em;
  gap: 1.2em;
  flex-wrap: wrap;
}
.admin-form-label {
  flex: 0 0 180px;
  color: #a0c4ff;
  font-weight: 500;
  font-size: 1em;
  text-align: right;
  word-break: break-word;
}
.admin-form-input {
  flex: 1;
  background: #1a233a;
  color: #e6e9f0;
  border: 1px solid #233554;
  border-radius: 8px;
  padding: 0.6em 1em;
  font-size: 1em;
  min-width: 120px;
  transition: border 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.admin-form-input:focus {
  border: 1.5px solid #6ea8fe;
  background: #233554;
  outline: none;
}
.admin-form-btn {
  background: linear-gradient(90deg, #233554 0%, #1e2a47 100%);
  color: #e6e9f0;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  margin-top: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 320px;
}
.admin-form-btn:hover {
  background: linear-gradient(90deg, #2d4373 0%, #233554 100%);
  color: #a0c4ff;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.25);
}
.admin-info {
  background: #1a233a;
  color: #a0c4ff;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin-top: 2em;
  font-size: 1.1em;
  word-break: break-word;
}

/* --- Адаптивность для admin-panel --- */
@media (max-width: 1200px) {
  .admin-content {
    padding: 1.5em 1em 1em 1em;
    margin: 1em 1em 1em 0;
    min-width: 0;
  }
  .admin-sidebar {
    padding: 1.5em 1em 1em 1em;
    min-width: 160px;
    max-width: 200px;
  }
}

@media (max-width: 900px) {
  .admin-root {
    flex-direction: column;
    gap: 0;
  }
  .admin-sidebar {
    max-width: 100vw;
    min-width: 0;
    width: 100%;
    border-radius: 0 0 18px 18px;
    margin-bottom: 1.5em;
    align-items: stretch;
    padding: 1.5em 1em 1em 1em;
  }
  .admin-content {
    margin: 0 0.5em 2em 0.5em;
    padding: 1.2em 0.5em 1.5em 0.5em;
    min-width: 0;
    max-width: 100vw;
  }
  .admin-form-label {
    flex: 0 0 110px;
    text-align: left;
  }
  .admin-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }
  .admin-form-input {
    min-width: 0;
    width: 100%;
  }
  .admin-form-btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5em 0.5em;
    gap: 0.2em;
  }
  .nav-link {
    margin-right: 0;
    font-size: 1em;
    padding: 0.5em 0;
  }
  .admin-sidebar {
    padding: 1em 0.5em 0.5em 0.5em;
    min-width: 0;
    max-width: 100vw;
    border-radius: 0 0 12px 12px;
  }
  .admin-content {
    padding: 0.7em 0.2em 1em 0.2em;
    margin: 0 0 1em 0;
  }
  .admin-form-label {
    flex: 0 0 90px;
    font-size: 0.98em;
  }
  .admin-info {
    padding: 0.7em 0.7em;
    font-size: 1em;
  }
}

/* --- Общий Layout для всех страниц --- */
.layout-root {
  display: flex;
  max-width: 900px;
  margin: 3em auto 0 auto;
  background: rgba(22, 36, 71, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
  min-height: 400px;
  width: 100%;
}
.layout-sidebar {
  min-width: 200px;
  max-width: 240px;
  background: rgba(16, 28, 44, 0.98);
  color: #e6e9f0;
  border-radius: 18px 0 0 18px;
  box-shadow: 4px 0 24px 0 rgba(31,38,135,0.10);
  padding: 2.5em 1.2em 2em 1.2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.layout-content {
  flex: 1;
  padding: 2.5em 2em 2em 2em;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .layout-root {
    flex-direction: column;
    max-width: 98vw;
    margin: 1em auto 0 auto;
  }
  .layout-sidebar {
    max-width: 100vw;
    min-width: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    margin-bottom: 1.5em;
    align-items: stretch;
    padding: 1.2em 0.5em 1em 0.5em;
  }
  .layout-content {
    padding: 1.2em 0.5em 1.5em 0.5em;
  }
} 
@media (max-width: 600px) {
  .layout-root {
    margin: 0.5em auto 0 auto;
    min-width: 0;
    border-radius: 10px;
  }
  .layout-sidebar {
    padding: 0.7em 0.2em 0.7em 0.2em;
    border-radius: 10px 10px 0 0;
  }
  .layout-content {
    padding: 0.7em 0.2em 1em 0.2em;
  }
}

/* --- Статистика на главной --- */
.stat-card {
  background: rgba(16, 28, 44, 0.98);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(31,38,135,0.10);
  padding: 1.5em 2.2em;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1em;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
.stat-card-value {
  color: #6ea8fe;
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 0.2em;
  letter-spacing: 1px;
  word-break: break-word;
}
.stat-card-label {
  color: #a0c4ff;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.5px;
  word-break: break-word;
}
@media (max-width: 600px) {
  .stat-card {
    padding: 1em 0.7em;
    min-width: 0;
    max-width: 100vw;
  }
  .stat-card-value {
    font-size: 1.5em;
  }
  .stat-card-label {
    font-size: 1em;
  }
} 

/* --- Универсальные стили для таблиц админки --- */
.admin-table {
  border-collapse: collapse;
  width: 100%;
  background: none;
  table-layout: fixed;
  font-size: 1em;
}

.admin-table-th {
  text-align: center;
  padding: 10px 8px;
  color: #a0c4ff;
  font-weight: 600;
  background: none;
  border-bottom: 1px solid #233554;
  font-size: 1em;
  word-break: break-word;
}

.admin-table-td {
  text-align: center;
  padding: 8px;
  background: none;
  border-bottom: 1px solid #233554;
  font-size: 1em;
  word-break: break-word;
  vertical-align: middle;
}

.admin-table-row {
  border-bottom: 1px solid #233554;
  background: none;
  transition: background 0.2s;
}

.admin-table-row:hover {
  background: #162447;
}

.admin-table button {
  min-width: 70px;
  width: 100%;
  max-width: 120px;
  font-size: 0.98em;
  padding: 0.3em 0.5em;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .admin-table-th, .admin-table-td {
    padding: 6px 4px;
    font-size: 0.95em;
  }
  .admin-table {
    font-size: 0.95em;
  }
}

@media (max-width: 600px) {
  .admin-table {
    font-size: 0.92em;
    display: block;
    overflow-x: auto;
    width: 100%;
  }
  .admin-table-th, .admin-table-td {
    padding: 4px 2px;
    font-size: 0.92em;
    min-width: 80px;
    word-break: break-word;
  }
}

/* --- Универсальные элементы админки --- */
.admin-title {
  color: #6ea8fe;
  font-size: 2em;
  margin-bottom: 1.2em;
  letter-spacing: 1px;
  word-break: break-word;
}
.admin-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a233a;
  display: inline-block;
}
.admin-card-img {
  width: 288px;
  height: 432px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #222;
  max-width: 100%;
  height: auto;
}
.admin-img-small {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-block;
}
.admin-select {
  width: 100%;
  height: 28px;
  font-size: 0.92em;
  border-radius: 6px;
  align-self: center;
  display: block;
  box-sizing: border-box;
  padding: 0 4px;
  line-height: 1.2;
  background: #233554;
  color: #fff;
  border: 1px solid #2a3a5a;
  transition: border 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}
.admin-dev-label {
  color: #ffb347;
  font-weight: 700;
  background: #1a233a;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 1em;
}
.admin-table-center {
  text-align: center;
  padding: 8px;
}
.admin-table-monospace {
  font-family: monospace;
}
.admin-table-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-card-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.10);
  background: #1a233a;
  width: 160px;
  height: 240px;
  min-width: 160px;
  min-height: 240px;
  max-width: 160px;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: box-shadow 0.2s;
}
.admin-card-img {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #222;
  max-width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .admin-card-container {
    width: 100px;
    height: 150px;
    min-width: 100px;
    min-height: 150px;
    max-width: 100px;
    max-height: 150px;
  }
  .admin-card-img {
    width: 100px;
    height: 150px;
  }
}
.admin-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,28,44,0.92);
  color: #fff;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 0;
  gap: 12px;
}
.admin-card-title {
  font-weight: 600;
  font-size: 1.15em;
  margin-bottom: 2px;
  word-break: break-word;
}
.admin-card-rank {
  font-size: 1em;
}
.admin-card-season {
  color: #b2e0ff;
  font-size: 0.95em;
}
.admin-card-limited {
  color: #ffb347;
  font-size: 0.95em;
}
.admin-card-btn {
  min-width: 120px;
  max-width: 180px;
  width: 180px;
  font-size: 1em;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .admin-card-btn {
    min-width: 70px;
    max-width: 100px;
    width: 100px;
    font-size: 0.95em;
  }
}
.admin-form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-form-imageurl {
  width: 140px;
  max-width: 100%;
}
.admin-form-label-small {
  font-size: 0.95em;
  color: #a0c4ff;
} 

.admin-table-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.admin-table-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
}
.admin-table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.admin-table-input {
  width: 90px;
  max-width: 100%;
}
.admin-table-description {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-word;
}
.admin-table-img-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin-left: 8px;
  display: inline-block;
  max-width: 100%;
  height: auto;
} 

.admin-import-card {
  background: rgba(16,28,44,0.98);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.10);
  padding: 12px;
  min-width: 220px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .admin-import-card {
    min-width: 0;
    max-width: 100vw;
    padding: 8px;
  }
}
.admin-import-selected {
  border: 2px solid #6ea8fe;
}
.admin-import-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 8px;
  background: #1a233a;
  display: block;
  max-width: 100%;
  height: auto;
}
.admin-import-checkbox {
  margin-top: 8px;
}
.admin-import-btn {
  margin-bottom: 18px;
}
.admin-import-info {
  margin-top: 18px;
}
.admin-import-title {
  color: #6ea8fe;
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 4px;
  word-break: break-word;
}
.admin-import-link {
  color: #6ea8fe;
  font-size: 0.95em;
  margin-bottom: 4px;
  text-decoration: underline;
  word-break: break-word;
} 

.admin-form-btn-red {
  background: #b22222;
  color: #fff;
}
.admin-form-btn-small {
  padding: 0.3em 1em;
  min-width: 70px;
  font-size: 0.98em;
}
.admin-form-input-small {
  width: 90px;
  max-width: 100%;
}
/* --- Дополнительные стили для элементов внутри таблиц --- */
.admin-table-td input.admin-form-input {
  width: 110px;
  min-width: 60px;
  max-width: 160px;
  font-size: 0.97em;
  padding: 2px 6px;
  box-sizing: border-box;
}

.admin-table-td .admin-table-img-preview {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.admin-table-td input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  display: block;
}

.admin-table-td .admin-table-description, 
.admin-table-td .admin-form-input[placeholder="Описание"] {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  word-break: break-word;
}

.admin-table-td .admin-table-description:hover, 
.admin-table-td .admin-form-input[placeholder="Описание"]:hover {
  white-space: normal;
  background: #233554;
  z-index: 2;
  position: relative;
  padding: 4px 8px;
  border-radius: 6px;
}

.admin-table-td .admin-form-btn {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 0.97em;
  padding: 6px 0;
  margin: 6px auto;
  box-sizing: border-box;
}

.admin-table-td .admin-form-btn + .admin-form-btn {
  margin-top: 8px;
  margin-left: 0;
}

/* --- Дополнительные стили для админки --- */
.admin-btn {
  background: linear-gradient(90deg, #233554 0%, #1e2a47 100%);
  color: #e6e9f0;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin: 0.5em 0.5em 0.5em 0;
}

.admin-btn:hover {
  background: linear-gradient(90deg, #2d4373 0%, #233554 100%);
  color: #a0c4ff;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.25);
}

.admin-btn:disabled {
  background: #1a233a;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin: 1em 0;
  font-size: 1em;
  word-break: break-word;
}

.admin-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin: 1em 0;
  font-size: 1em;
  word-break: break-word;
}

.admin-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin: 1em 0;
  font-size: 1em;
  word-break: break-word;
}

.mt-2 {
  margin-top: 0.5em;
}

.mt-3 {
  margin-top: 1em;
}

.text-danger {
  color: #dc3545;
}

/* --- Стили для rarity-score-admin --- */
.rarity-score-admin {
  color: #e6e9f0;
}

.rarity-score-admin h1 {
  color: #6ea8fe;
  font-size: 2em;
  margin-bottom: 1.2em;
  letter-spacing: 1px;
  word-break: break-word;
}

.rarity-score-admin h3 {
  color: #a0c4ff;
  font-size: 1.5em;
  margin-bottom: 1em;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.rarity-score-admin h4 {
  color: #6ea8fe;
  font-size: 1.3em;
  margin-bottom: 0.8em;
  letter-spacing: 0.5px;
  word-break: break-word;
}

.rarity-score-admin h5 {
  color: #a0c4ff;
  font-size: 1.1em;
  margin-bottom: 0.6em;
  letter-spacing: 0.3px;
  word-break: break-word;
}

/* --- Стили для статистических карточек --- */
.admin-stat-card {
  background: rgba(16, 28, 44, 0.98);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(31,38,135,0.10);
  padding: 1.5em 2.2em;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1em;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.admin-stat-title {
  color: #a0c4ff;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.5px;
  word-break: break-word;
  margin-bottom: 0.5em;
}

.admin-stat-value {
  color: #6ea8fe;
  font-size: 2.3em;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-word;
}

@media (max-width: 600px) {
  .admin-stat-card {
    padding: 1em 0.7em;
    min-width: 0;
    max-width: 100vw;
  }
  .admin-stat-value {
    font-size: 1.5em;
  }
  .admin-stat-title {
    font-size: 1em;
  }
}

/* --- Стили для детального просмотра пользователя --- */
.user-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.user-details-content {
  background: #1a233a;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid #233554;
}

.user-details-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid #233554;
  background: linear-gradient(135deg, #233554 0%, #1e2a47 100%);
  border-radius: 12px 12px 0 0;
  gap: 15px;
}

.user-details-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.user-details-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #4a90e2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.user-details-user-text h2 {
  margin: 0 0 5px 0;
  color: #e6e9f0;
  font-size: 1.5em;
}

.user-details-discord-id {
  margin: 0 0 3px 0;
  color: #a0c4ff;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.user-details-level {
  margin: 0;
  color: #28a745;
  font-weight: 600;
  font-size: 0.9em;
}

.user-details-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  min-width: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.user-details-tabs {
  display: flex;
  flex-direction: column;
  background: #233554;
  border-bottom: 1px solid #1e2a47;
}

.user-details-tab {
  padding: 15px 20px;
  background: none;
  border: none;
  color: #a0c4ff;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 3px solid transparent;
  text-align: left;
}

.user-details-tab:hover {
  background: #2d4373;
  color: #e6e9f0;
}

.user-details-tab.active {
  background: #1a233a;
  color: #4a90e2;
  border-right-color: #4a90e2;
}

.user-details-content {
  display: flex;
  min-height: 400px;
}

.user-details-tabs {
  width: 200px;
  flex-shrink: 0;
}

.user-details-tab-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.user-details-content h3 {
  margin: 0 0 20px 0;
  color: #e6e9f0;
  font-size: 1.3em;
  border-bottom: 2px solid #233554;
  padding-bottom: 10px;
}

/* Стили для трейдов */
.trades-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trade-item {
  background: #233554;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #1e2a47;
}

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

.trade-id {
  background: #4a90e2;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.trade-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.trade-status-pending {
  background: #ffc107;
  color: #1a233a;
}

.trade-status-accepted {
  background: #28a745;
  color: white;
}

.trade-status-declined {
  background: #dc3545;
  color: white;
}

.trade-status-cancelled {
  background: #6c757d;
  color: white;
}

.trade-date {
  color: #a0c4ff;
  font-size: 0.9em;
}

.trade-participants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.trade-participant {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e2a47;
  padding: 8px 12px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.trade-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.trade-arrow {
  color: #4a90e2;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  padding: 5px 0;
}

.trade-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-item-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e2a47;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #233554;
}

.trade-card-image-container {
  position: relative;
  width: 40px;
  height: 40px;
}

.trade-card-image {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.trade-card-fallback {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(135deg, #233554 0%, #1e2a47 100%);
  border: 1px solid #4a90e2;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.trade-card-fallback-text {
  color: #4a90e2;
  font-size: 0.7em;
  font-weight: 600;
  text-align: center;
  line-height: 1;
}

.trade-card-name {
  color: #e6e9f0;
  font-size: 0.9em;
  font-weight: 600;
}

.trade-card-quantity {
  color: #a0c4ff;
  font-size: 0.8em;
  background: #233554;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Стили для инвентаря */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.inventory-item {
  background: #233554;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #1e2a47;
  transition: transform 0.2s, box-shadow 0.2s;
}

.inventory-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inventory-card-image-container {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: 10px;
}

.inventory-card-image {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.inventory-card-fallback {
  display: none;
  width: 100%;
  height: 120px;
  border-radius: 6px;
  background: linear-gradient(135deg, #233554 0%, #1e2a47 100%);
  border: 1px solid #4a90e2;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.inventory-card-fallback-text {
  color: #4a90e2;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
}

.inventory-item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inventory-card-name {
  color: #e6e9f0;
  font-weight: 600;
  font-size: 1em;
}

.inventory-card-rarity {
  color: #4a90e2;
  font-size: 0.9em;
  font-weight: 600;
}

.inventory-card-quantity {
  color: #a0c4ff;
  font-size: 0.9em;
}

.inventory-card-date {
  color: #6c757d;
  font-size: 0.8em;
}

/* Стили для жалоб */
.complaints-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.complaints-dev-info {
  margin-top: 20px;
  text-align: left;
  background: #233554;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #1e2a47;
}

.complaints-dev-info p {
  color: #e6e9f0;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.complaints-dev-info ul {
  color: #a0c4ff;
  margin: 0;
  padding-left: 20px;
}

.complaints-dev-info li {
  margin: 5px 0;
}

/* Стили для кнопки клика по пользователю */
.admin-user-link {
  background: none;
  border: none;
  color: #4a90e2;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  transition: color 0.2s;
}

.admin-user-link:hover {
  color: #a0c4ff;
  text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .user-details-modal {
    padding: 10px;
  }
  
  .user-details-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .user-details-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .user-details-tabs {
    flex-direction: column;
  }
  
  .user-details-tab {
    border-bottom: none;
    border-right: 3px solid transparent;
  }
  
  .user-details-tab.active {
    border-bottom: none;
    border-right-color: #4a90e2;
  }
  
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  
  .trade-participants {
    align-items: stretch;
  }
  
  .trade-arrow {
    transform: none;
  }
} 