:root {
  --bg-color: #f7f6fb;
  --text-color: #222;
  --accent: #8b5cf6;
  --card-bg: rgba(255, 255, 255, 0.6); /* теперь полупрозрачный */
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-bg: rgba(31, 31, 31, 0.55); /* тёмная тема — стеклянный тёмный эффект */
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-y: auto;
}

/* Верхний логотип */
.top-logo {
  text-align: center;
  margin-top: 20px;
}
.logo-large {
  height: 80px;
  animation: fadeIn 1.2s ease;
}

/* Центрирование навигации под логотипом */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 10px;
}

/* Меню по центру */
.nav-center nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

/* === Кнопки навигации === */
.nav-center nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid var(--accent);
  background: transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-center nav a:hover,
.nav-center nav a.active {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Кнопка смены темы */
#themeToggle {
  position: absolute;
  right: 30px;
  top: 0;
  background: var(--accent);
  border: none;
  border-radius: 25px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

#themeToggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* Основное содержимое */
main {
  flex: 1;
  text-align: center;
  padding: 40px 20px 120px;
}

.welcome h1 {
  font-size: 2rem;
  color: var(--accent);
}

/* === Блок IP сервера === */
.server-box {
  margin: 30px auto;
  max-width: 400px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px); /* добавлено размытие */
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

/* === Блок покупки монет === */
.shop {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px 25px;
  margin-top: 40px;
  margin-bottom: 80px;
  max-width: 400px;
  margin-inline: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px); /* эффект “стекла” */
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease;
}

.shop label {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 10px;
  font-weight: 500;
}

.shop input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: var(--bg-color);
  color: var(--text-color);
  box-sizing: border-box;
}

.calc-output {
  font-weight: 600;
  color: var(--accent);
  margin: 15px 0;
}

.buy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.buy-btn:hover {
  transform: scale(1.05);
  background: #9d4edd;
}

/* === Разделители === */
.section-divider {
  text-align: center;
  margin: 50px auto 30px;
  position: relative;
  width: 90%;
  max-width: 800px;
}
.section-divider h2 {
  font-size: 1.4rem;
  color: var(--accent);
  display: inline-block;
  padding: 0 20px;
  background: var(--bg-color);
  z-index: 2;
  position: relative;
}
.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(139, 92, 246, 0.25);
  z-index: 1;
  transform: translateY(-50%);
}

/* Копирование IP */
.copy-ip {
  margin-top: 8px;
  background: var(--bg-color);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  user-select: all;
  transition: background 0.3s, transform 0.1s;
}
.copy-ip:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
}
.copy-tip {
  font-size: 0.8rem;
  color: #999;
}

/* Футер */
footer {
  background: var(--card-bg);
  text-align: center;
  padding: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Индикаторы онлайна */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.online {
  background: #2ecc71;
}
.status-dot.offline {
  background: #e74c3c;
}

/* Анимация */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@media (max-width: 600px) {
  .nav-center nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  #themeToggle {
    right: 15px;
  }
}

/* ============================================================= */
/* === ФИОЛЕТОВЫЕ ПАРЯЩИЕ КВАДРАТЫ НА ФОНЕ ===================== */
/* ============================================================= */

.floating-squares {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.floating-squares span {
  position: absolute;
  display: block;
  width: 25px;
  height: 25px;
  background: rgba(139, 92, 246, 0.25);
  animation: floatUp 20s linear infinite;
  bottom: -150px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}
.floating-squares span:nth-child(1) { left: 5%; width: 25px; height: 25px; animation-delay: 0s; animation-duration: 25s; }
.floating-squares span:nth-child(2) { left: 15%; width: 15px; height: 15px; animation-delay: 4s; animation-duration: 18s; }
.floating-squares span:nth-child(3) { left: 25%; width: 40px; height: 40px; animation-delay: 2s; animation-duration: 22s; }
.floating-squares span:nth-child(4) { left: 35%; width: 20px; height: 20px; animation-delay: 6s; animation-duration: 20s; }
.floating-squares span:nth-child(5) { left: 45%; width: 35px; height: 35px; animation-delay: 0s; animation-duration: 28s; }
.floating-squares span:nth-child(6) { left: 60%; width: 30px; height: 30px; animation-delay: 5s; animation-duration: 26s; }
.floating-squares span:nth-child(7) { left: 70%; width: 50px; height: 50px; animation-delay: 8s; animation-duration: 30s; }
.floating-squares span:nth-child(8) { left: 80%; width: 18px; height: 18px; animation-delay: 3s; animation-duration: 17s; }
.floating-squares span:nth-child(9) { left: 90%; width: 25px; height: 25px; animation-delay: 10s; animation-duration: 27s; }
.floating-squares span:nth-child(10){ left: 50%; width: 60px; height: 60px; animation-delay: 12s; animation-duration: 32s; }

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-50vh) rotate(180deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* Контент поверх фона */
body > *:not(.floating-squares) {
  position: relative;
  z-index: 2;
}
/* === Футер сайта === */
.site-footer {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 20px;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  text-align: left;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #b191ff;
}

.footer-right a {
  color: var(--accent);
  font-size: 1.3rem;
  margin-left: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-right a:hover {
  color: #b191ff;
  transform: scale(1.15);
}

/* Адаптив */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-right a {
    margin-left: 10px;
  }
}