/* ===== БИРЖА ПРОМПТОВ — ЗОЛОТАЯ ТЕМА ===== */

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(180deg, #FFD700 0%, #D4AF37 30%, #FFF8DC 50%, #D4AF37 70%, #B8860B 100%);
  --text: #e0e0e0;
  --text-muted: #999;
  --border: #333;
  --accent-red: #ff4444;
  --accent-green: #44ff44;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

/* ===== Золотой текст ===== */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5));
  font-weight: 800;
}

/* ===== Шапка ===== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.header-gold-line {
  height: 3px;
  background: var(--gold-gradient);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  margin: 0;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-light);
}

.btn-login,
.btn-register {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-register {
  background: var(--gold);
  border: none;
  color: var(--bg-dark);
}

.btn-gold {
  background: var(--gold-gradient);
  border: none;
  color: var(--bg-dark);
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ===== Хайпман-бар ===== */
.hypeman-bar {
  background: linear-gradient(90deg, #1a0000, #2a1a00, #1a0000);
  border-bottom: 1px solid var(--gold-dark);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.hypeman-avatar {
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hypeman-text {
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== Основной контент ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
}

/* ===== Событие Архимага ===== */
.archmage-event {
  background: linear-gradient(135deg, #1a0000, #2a1a00, #1a0000);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  animation: eventPulse 2s infinite;
}

@keyframes eventPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.7);
  }
}

.archmage-event-content {
  position: relative;
  z-index: 2;
}

.archmage-event-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  z-index: 1;
  animation: glowRotate 10s linear infinite;
}

@keyframes glowRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.archmage-event-title {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  animation: titleGlow 1s infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.9), 0 0 100px rgba(255, 215, 0, 0.4);
  }
}

.archmage-event-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ===== Золотой Зал ===== */
.gold-hall {
  margin-bottom: 3rem;
}

.gold-hall-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Золотая карточка */
.prompt-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  border: 1px solid var(--border);
  cursor: pointer;
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(212, 175, 55, 0.05) 40deg,
      rgba(212, 175, 55, 0.2) 60deg,
      rgba(255, 215, 0, 0.4) 80deg,
      rgba(212, 175, 55, 0.2) 100deg,
      transparent 120deg,
      transparent 360deg);
  animation: goldShine 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes goldShine {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.prompt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.03), 0 0 20px rgba(212, 175, 55, 0.05);
  pointer-events: none;
  z-index: 2;
}

.prompt-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.prompt-card:hover::before {
  animation-duration: 2s;
}

.prompt-card-content {
  position: relative;
  z-index: 3;
  padding: 1.2rem;
}

.prompt-card-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-card-hover);
}

.prompt-card-title {
  font-weight: 700;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.prompt-card-author {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.prompt-card-rating {
  color: var(--gold-light);
  margin: 0.3rem 0;
}

.prompt-card-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-light);
}

.prompt-card-change {
  font-weight: 600;
  font-size: 0.9rem;
}

.change-positive {
  color: var(--accent-green);
}

.change-negative {
  color: var(--accent-red);
}

.prompt-card-sales {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.prompt-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

.supply-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: var(--accent-red);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

/* ===== Витрина ===== */
.marketplace {
  margin-bottom: 3rem;
}

.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ===== Торговый терминал ===== */
.terminal-section {
  margin-bottom: 3rem;
}

.terminal-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.terminal-chart {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.terminal-chart canvas {
  width: 100%;
  height: auto;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.chart-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.chart-btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.terminal-orderbook {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.terminal-orderbook h3 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.orderbook-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}

.orderbook-row.sell {
  color: var(--accent-red);
}

.orderbook-row.buy {
  color: var(--accent-green);
}

.orderbook-spread {
  text-align: center;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-trade {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.terminal-trade h3 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.trade-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}

.trade-tab {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.trade-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.trade-tab:last-child {
  border-radius: 0 6px 6px 0;
}

.trade-tab.active {
  background: var(--accent-green);
  color: var(--bg-dark);
  border-color: var(--accent-green);
}

.trade-tab.active[data-tab="sell"] {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.trade-type-selector {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.trade-type {
  flex: 1;
  padding: 0.3rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
}

.trade-type.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.trade-form .form-group {
  margin-bottom: 0.8rem;
}

.trade-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.trade-form input {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}

.trade-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.trade-total {
  font-weight: 700;
  color: var(--gold-light);
}

/* ===== Битвы ===== */
.battles {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.battle-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.battle-card h3 {
  margin: 0.5rem 0;
}

.battle-card p {
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.active-battle {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.battle-status {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.active-battle .battle-status {
  color: var(--accent-red);
}

.upcoming {
  color: var(--gold-light);
}

/* ===== Форма создания ===== */
.create-section {
  margin-bottom: 3rem;
}

.create-form {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group label {
  color: var(--text);
  font-weight: 400;
}

.form-group small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.cover-preview {
  margin-top: 0.5rem;
}

.cover-preview img {
  max-width: 200px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== Модальные окна ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  border: 1px solid var(--border);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-large {
  max-width: 900px;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.close-modal:hover {
  color: var(--gold-light);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.btn-auth-vk,
.btn-auth-yandex,
.btn-auth-google {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-auth-vk {
  background: #0077FF;
  color: white;
}

.btn-auth-yandex {
  background: #FC3F1D;
  color: white;
}

.btn-auth-google {
  background: white;
  color: #333;
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  margin: 1rem 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--gold-light);
  cursor: pointer;
}

/* ===== Детали промпта (модальное окно) ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.detail-cover {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.detail-author {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.detail-price-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
}

.detail-change {
  font-weight: 600;
}

.detail-description {
  margin-bottom: 1.5rem;
}

.detail-description h3,
.detail-prompt-preview h3,
.detail-stats h3 {
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.detail-prompt-preview pre {
  background: var(--bg-dark);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text);
  border: 1px solid var(--border);
}

.detail-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.detail-stats {
  margin-bottom: 1.5rem;
}

.detail-stats p {
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.profile-avatar {
  font-size: 4rem;
  background: var(--bg-dark);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  margin-bottom: 0.3rem;
}

.profile-status {
  color: var(--gold-light);
  font-weight: 600;
}

.profile-joined {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-balance {
  text-align: right;
}

.balance-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.balance-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Вкладки портфеля */
.portfolio-tabs {
  display: flex;
  gap: 0;
  margin: 1rem 0;
}

.portfolio-tab {
  padding: 0.7rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.portfolio-tab:first-child {
  border-radius: 8px 0 0 8px;
}

.portfolio-tab:last-child {
  border-radius: 0 8px 8px 0;
}

.portfolio-tab.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
}

.empty-state a {
  color: var(--gold-light);
}

/* Статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.stat-value.green {
  color: var(--accent-green);
}

.stat-value.gold {
  color: var(--gold-light);
}

.stat-value.red {
  color: var(--accent-red);
}

/* История */
.history-table {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th {
  text-align: left;
  padding: 0.7rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
}

/* Вывод средств */
.withdraw-section {
  margin-bottom: 3rem;
}

.withdraw-form {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  border: 1px solid var(--border);
}

.withdraw-info {
  background: var(--bg-dark);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== ПАНЕЛЬ АРХИМАГА ===== */
.admin-panel {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.admin-card.warning {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.admin-card.success {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.admin-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.admin-value.gold {
  color: var(--gold-light);
}

.admin-value.red {
  color: var(--accent-red);
}

.admin-value.green {
  color: var(--accent-green);
}

.admin-commands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-btn {
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-align: center;
  background: var(--bg-card);
  color: var(--text);
}

.admin-btn.resurrect {
  background: linear-gradient(135deg, #1a0000, #3a1a00);
  border-color: var(--gold);
  color: var(--gold-light);
}

.admin-btn.resurrect:hover {
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
  transform: scale(1.02);
}

.admin-btn.broadcast {
  background: linear-gradient(135deg, #001a00, #1a3a00);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.admin-btn.silence {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.admin-btn.collect {
  background: linear-gradient(135deg, #1a001a, #3a1a3a);
  border-color: #ff44ff;
  color: #ff44ff;
}

.admin-log {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  max-height: 400px;
  overflow-y: auto;
}

.admin-log-entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-log-entry .time {
  color: var(--gold-light);
  margin-right: 1rem;
}

/* ===== Подвал ===== */
/* ===== ПЛАТИНОВЫЙ ФУТЕР-МОНОЛИТ ===== */
.footer {
  background: #1a1a1a;
  border-top: 2px solid #c0c0c0;   /* платиновая полоса */
  padding: 2rem 2rem 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 -8px 20px rgba(0,0,0,0.4);
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.footer-col {
  min-width: 160px;
}

.footer-col h4 {
  color: #c0c0c0;                  /* платиновый */
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: #999;                     /* светло-серый, не синий */
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.3s, transform 0.2s;
  font-size: 0.9rem;
}

.footer-col a:hover,
.footer-col a:active {
  color: #fff;
  transform: translateX(4px);
}

.footer-copy {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
  .terminal-container {
    grid-template-columns: 1fr 1fr;
  }
  .terminal-chart {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .gold-hall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-container {
    grid-template-columns: 1fr;
  }
  .battles {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .nav {
    justify-content: center;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-balance {
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-commands {
    grid-template-columns: 1fr;
  }
}