/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
  --bg-light: #f0f4f8;
  --glass-bg: rgba(20, 20, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(14px);
  --border-radius: 18px;
  --transition: 0.3s ease;
  --accent-primary: #8A2BE2;       /* основной фиолетовый */
  --accent-secondary: #b366ff;     /* светлый фиолетовый */
  --accent-discord: #5865F2;
  --accent-telegram: #27A7E7;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
}

/* ========== БАЗА ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-light);
  background-image: url('../assets/summer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ========== LOADER ========== */
#loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #0a0a0f; display: flex; align-items: center; justify-content: center;
  z-index: 10000; transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px var(--accent-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== CANVAS ========== */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ========== HEADER ========== */
.header {
  padding: 18px 0; position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo__text { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 900; color: #fff; }
.logo__accent { color: var(--accent-primary); text-shadow: 0 0 14px var(--accent-primary); }
.nav__list { display: flex; gap: 25px; }
.nav__link { font-weight: 600; color: rgba(255,255,255,0.8); padding: 8px 0; position: relative; }
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent-primary); transition: width var(--transition);
  box-shadow: 0 0 10px var(--accent-primary);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.burger__line { width: 25px; height: 3px; background: #fff; border-radius: 3px; transition: var(--transition); }

/* Steam login */
.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.steam-login-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}
.steam-login-btn i { font-size: 1.2rem; }

/* ========== СЕКЦИИ И ЗАГОЛОВКИ ========== */
.section-title {
  text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: #fff;
  position: relative; display: block; width: 100%;
}
.title-decor { color: var(--accent-primary); text-shadow: 0 0 10px var(--accent-primary); }

/* ========== HERO ========== */
.hero { min-height: calc(100vh - 80px); display: flex; align-items: center; text-align: center; padding: 0 20px; }
.hero__inner { max-width: 800px; margin: 0 auto; }
.hero__title { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.text-glitch {
  color: #fff; position: relative; display: inline-block;
  text-shadow: 2px 2px 0 var(--accent-secondary), -2px -2px 0 var(--accent-primary);
  animation: glitch 3s infinite linear alternate-reverse;
}
@keyframes glitch {
  0% { text-shadow: 2px 2px 0 var(--accent-secondary), -2px -2px 0 var(--accent-primary); }
  25% { text-shadow: -2px 2px 0 var(--accent-primary), 2px -2px 0 var(--accent-secondary); }
  50% { text-shadow: 2px -2px 0 var(--accent-primary), -2px 2px 0 var(--accent-secondary); }
  75% { text-shadow: -2px -2px 0 var(--accent-secondary), 2px 2px 0 var(--accent-primary); }
}
.text-glow { color: var(--accent-primary); text-shadow: 0 0 25px var(--accent-primary); }
.hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.hero__buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ========== КНОПКИ ========== */
.btn {
  display: inline-block; padding: 14px 32px; font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px;
  border-radius: 8px; transition: all 0.3s ease; border: none; cursor: pointer;
  position: relative; overflow: hidden; color: #fff;
}
.btn i { margin-right: 8px; }
.btn--primary { background: var(--accent-primary); box-shadow: 0 0 18px rgba(138,43,226,0.6); }
.btn--primary:hover { box-shadow: 0 0 30px rgba(138,43,226,0.9); transform: translateY(-3px); }
.btn--accent { background: var(--accent-secondary); box-shadow: 0 0 18px rgba(179,102,255,0.6); }
.btn--accent:hover { box-shadow: 0 0 30px rgba(179,102,255,0.9); transform: translateY(-3px); }
.btn--discord { background: var(--accent-discord); box-shadow: 0 0 18px rgba(88,101,242,0.6); }
.btn--discord:hover { box-shadow: 0 0 30px rgba(88,101,242,0.9); transform: translateY(-3px); }
.btn--telegram { background: var(--accent-telegram); box-shadow: 0 0 18px rgba(39,167,231,0.6); }
.btn--telegram:hover { box-shadow: 0 0 30px rgba(39,167,231,0.9); transform: translateY(-3px); }
.btn--buy {
  width: 100%; background: var(--accent-primary); box-shadow: 0 0 15px rgba(138,43,226,0.5);
  font-size: 1rem; letter-spacing: 2px; margin-top: 20px;
}
.btn--buy:hover { box-shadow: 0 0 25px rgba(138,43,226,0.8); transform: scale(1.03); }
.btn--lg { padding: 18px 45px; font-size: 1.2rem; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138,43,226,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(138,43,226,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,43,226,0); }
}

/* ========== GLASSMORPHISM ========== */
.glass {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--border-radius);
}

/* ========== СТАТИСТИКА ========== */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.stat-card { padding: 30px 20px; text-align: center; transition: transform var(--transition); color: #fff; }
.stat-card:hover { transform: translateY(-5px); }
.stat-card__icon { font-size: 2rem; color: var(--accent-secondary); margin-bottom: 15px; }
.stat-card__value { font-size: 2rem; margin-bottom: 5px; }
.stat-card__label { color: rgba(255,255,255,0.7); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* ========== ABOUT / FEATURES ========== */
.about__content { padding: 40px; max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; color: #fff; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card { padding: 35px 25px; text-align: center; transition: transform var(--transition); color: #fff; }
.feature-card:hover { transform: translateY(-8px); }
.feature-card__icon { font-size: 2.8rem; color: var(--accent-primary); margin-bottom: 20px; filter: drop-shadow(0 0 10px var(--accent-primary)); }
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* ========== ДОНАТ (вкладки + карточки) ========== */
.donate-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}
.donate-card {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #fff;
  position: relative;
}
.donate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.card-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-primary);
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #2a2a35;
}
.price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin: 10px 0;
}
.card-desc {
  font-size: 0.95rem;
  color: #ccc;
  margin: 10px 0;
}
.donate-card ul {
  list-style: none;
  text-align: left;
  padding: 0 10px;
}
.donate-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.donate-card ul li i {
  color: #27ae60;
}

/* ========== ЗАГЛУШКА "В РАЗРАБОТКЕ" ========== */
.development-notice {
  text-align: center;
  padding: 60px 30px;
  max-width: 500px;
  margin: 0 auto;
  color: #fff;
}
.development-notice i {
  font-size: 3.5rem;
  color: var(--accent-primary);
  margin-bottom: 25px;
  display: block;
  animation: bounce 2s infinite;
}
.development-notice h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  letter-spacing: 3px;
}
.development-notice p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center;
  z-index: 5000; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { width: 90%; max-width: 450px; padding: 40px 30px; position: relative; text-align: center; background: rgba(20,20,30,0.9); color: #fff; }
.modal__close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; font-size: 2rem; color: #fff; cursor: pointer; }
.modal__title { font-size: 1.8rem; margin-bottom: 20px; }
.modal__info p { margin-bottom: 10px; font-size: 1.1rem; }
.modal__form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.modal__form label { text-align: left; font-weight: 600; }
.modal__form input {
  padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3); color: #fff; outline: none;
}
.modal__pay-btn { display: block; text-align: center; }

/* ========== ПРАВИЛА / СОГЛАШЕНИЕ ========== */
.rules__list, .agreement__content { padding: 40px; max-width: 900px; margin: 0 auto; color: #fff; }
.rule-item { margin-bottom: 30px; }
.rule-item h3 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; color: var(--accent-primary); margin-bottom: 10px; }
.agreement__content h3 { color: var(--accent-secondary); margin: 25px 0 10px; }
.agreement__content p { margin-bottom: 15px; color: rgba(255,255,255,0.8); line-height: 1.8; }

/* ========== КОНТАКТЫ ========== */
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; justify-items: center; }
.contacts__card { padding: 40px 30px; text-align: center; color: #fff; max-width: 350px; }
.contacts__icon { font-size: 4rem; margin-bottom: 20px; }
.contacts__card .btn { margin-top: 20px; }
.contacts__note { text-align: center; color: rgba(255,255,255,0.6); margin-top: 30px; }

/* ========== ТАБЛИЦА БАНОВ ========== */
.banlist-table-wrapper {
  overflow-x: auto;
  padding: 20px;
}
.banlist-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.banlist-table th,
.banlist-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.banlist-table th {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent-primary);
  background: rgba(0,0,0,0.4);
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.banlist-table td {
  font-size: 0.95rem;
  vertical-align: middle;
}
.banlist-table tbody tr {
  transition: background 0.2s ease;
}
.banlist-table tbody tr:hover {
  background: rgba(255,255,255,0.05);
}
.steam-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.steam-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px var(--accent-secondary);
}
.steam-link i {
  margin-right: 6px;
  color: var(--accent-secondary);
}
.ban-duration.permanent {
  color: #ff4444;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,0,0,0.5);
}

/* ========== FOOTER ========== */
.footer {
  background: rgba(0,0,0,0.7); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 50px 0 30px; margin-top: 50px; color: #fff;
}
.footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; align-items: start; }
.footer__col h4 { margin-bottom: 15px; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col a:hover { color: var(--accent-primary); }

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }
  .nav {
    position: fixed; top: 80px; left: 0; width: 100%; height: 0; overflow: hidden;
    background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); transition: height 0.3s;
  }
  .nav.active { height: auto; padding: 20px 0; }
  .nav__list { flex-direction: column; align-items: center; gap: 15px; }
  .burger { display: flex; }
  .donate-grid { grid-template-columns: 1fr; }
}