* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-blue: #1a1a2e;
  --blue-grey: #16213e;
  --moon-white: #f0f8ff;
  --purple-eyes: #8b5cf6;
  --text-light: #e8eaed;
  --text-grey: #9aa0a6;
  --border-grey: #3c4043;
  --gothic-dark: #0a0a0a;
}

body {
  font-family: 'Times New Roman', serif;
  background: #1a1a2e url('../BG.jpg') center/cover no-repeat fixed;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Счетчик онлайна - компактный */
.online-counter {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 10, 0.9);
  border: 2px solid #8b5cf6;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  box-shadow: 
    0 0 15px rgba(139, 92, 246, 0.4),
    inset 0 0 8px rgba(139, 92, 246, 0.1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.online-label {
  color: #9aa0a6;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.online-count {
  color: #8b5cf6;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
  min-width: 20px;
  text-align: center;
}

/* Пульсация для привлечения внимания */
@keyframes pulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(139, 92, 246, 0.5),
      inset 0 0 10px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(139, 92, 246, 0.8),
      inset 0 0 15px rgba(139, 92, 246, 0.2);
  }
}

/* Состояние OFFLINE (сервер выключен) */
.online-counter.server-offline {
  border-color: #ef4444;
  background: rgba(20, 10, 10, 0.9);
  animation: pulse-offline 2s ease-in-out infinite;
}

.offline-label {
  color: #ef4444;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  animation: blink 1.5s ease-in-out infinite;
}

/* Мигание для OFFLINE */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Красная пульсация */
@keyframes pulse-offline {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(239, 68, 68, 0.5),
      inset 0 0 10px rgba(239, 68, 68, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(239, 68, 68, 0.9),
      inset 0 0 15px rgba(239, 68, 68, 0.3);
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .online-counter {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .online-label {
    font-size: 10px;
  }
  
  .online-count {
    font-size: 14px;
  }
  
  .offline-label {
    font-size: 12px;
  }
}

/* Контейнер */
.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 450px;
  margin-left: 80px;
  margin-top: -50px;
}

/* Готический блок входа */
.login-block {
  background: rgba(10, 10, 10, 0.95);
  border: 3px solid var(--border-grey);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(60, 64, 67, 0.1);
  position: relative;
}

/* Декоративная готическая рамка */
.login-block::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--border-grey);
  border-radius: 25px;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(60, 64, 67, 0.05) 50%, transparent 70%);
  z-index: -1;
  opacity: 0.6;
}

/* Заголовок блока */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-script {
  font-size: 24px;
  color: var(--text-light);
  font-family: 'Times New Roman', serif;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.login-subtitle {
  font-size: 18px;
  color: var(--text-grey);
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(154, 160, 166, 0.3);
}

/* Форма */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.form-group label {
  min-width: 75px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(232, 234, 237, 0.3);
}

.form-group input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--border-grey);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-light);
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 10px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(60, 64, 67, 0.1);
}

.form-group input::placeholder {
  color: rgba(154, 160, 166, 0.7);
}

.form-group input:focus {
  border-color: var(--text-light);
  box-shadow: 
    0 0 15px rgba(232, 234, 237, 0.3),
    inset 0 0 15px rgba(60, 64, 67, 0.2);
  transform: translateY(-1px);
}

/* Капча */
.captcha-group {
  flex-direction: column;
  align-items: flex-start;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha-wrapper img {
  border-radius: 6px;
  border: 2px solid var(--border-grey);
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-refresh {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--border-grey);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-refresh:hover {
  background: rgba(60, 64, 67, 0.2);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 15px rgba(232, 234, 237, 0.3);
}

/* Чекбокс согласия с условиями */
.agreement-checkbox {
  margin: 14px 0 16px 0;
  padding: 13px 15px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.agreement-checkbox:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.agreement-checkbox a {
  transition: all 0.2s ease;
  text-decoration: underline;
  font-weight: 500;
}

.agreement-checkbox a:hover {
  color: #c4b5fd !important;
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

/* Кнопка отправки */
.btn-submit {
  background: linear-gradient(135deg, rgba(60, 64, 67, 0.2), rgba(26, 26, 46, 0.2));
  border: 2px solid var(--border-grey);
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 15px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(60, 64, 67, 0.1);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, rgba(60, 64, 67, 0.3), rgba(26, 26, 46, 0.3));
  border-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 
    0 0 25px rgba(232, 234, 237, 0.4),
    inset 0 0 25px rgba(60, 64, 67, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-loader::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid rgba(60, 64, 67, 0.3);
  border-top-color: var(--text-light);
  border-radius: 50%;
  display: block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Сообщения */
.message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageSlideIn 0.5s ease-out;
  backdrop-filter: blur(10px);
  border: 2px solid;
  position: relative;
  overflow: hidden;
}

.message.error {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ff0000;
  color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
  animation: errorShake 0.6s ease-out, messageSlideIn 0.5s ease-out;
}

.message.success {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  animation: successPulse 2s ease-in-out infinite, messageSlideIn 0.5s ease-out;
}

.message.success strong {
  color: #00ff00;
  font-weight: 600;
  animation: textGlow 1.5s ease-in-out infinite;
}

/* Анимация появления сообщения */
@keyframes messageSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Анимация тряски для ошибок */
@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Анимация пульсации для успешных сообщений */
@keyframes successPulse {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(0, 255, 0, 0.3),
      0 0 25px rgba(0, 255, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(0, 255, 0, 0.6),
      0 0 40px rgba(0, 255, 0, 0.4);
    transform: scale(1.02);
  }
}

/* Анимация свечения текста */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(0, 255, 0, 0.8),
      0 0 20px rgba(0, 255, 0, 0.6);
  }
}

/* Эффект мигания для ошибок */
.message.error::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
  animation: errorFlash 1s ease-out;
}

@keyframes errorFlash {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Эффект частиц для успешных сообщений */
.message.success::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 0, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 0, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 255, 0, 0.4), transparent);
  background-repeat: repeat;
  background-size: 50px 50px;
  animation: successParticles 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes successParticles {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
}

/* Карточка лаунчера */
.launcher-card {
  background: rgba(10, 10, 10, 0.95);
  border: 3px solid var(--border-grey);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(60, 64, 67, 0.1);
  position: relative;
  text-align: center;
  animation: launcherSlideIn 0.8s ease-out;
}

/* Декоративная рамка для лаунчера */
.launcher-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--border-grey);
  border-radius: 25px;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(60, 64, 67, 0.05) 50%, transparent 70%);
  z-index: -1;
  opacity: 0.6;
}

/* Заголовок лаунчера */
.launcher-header {
  margin-bottom: 30px;
}

.launcher-title {
  font-size: 28px;
  color: var(--text-light);
  font-family: 'Times New Roman', serif;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(232, 234, 237, 0.8);
  animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 15px rgba(232, 234, 237, 0.8);
  }
  50% {
    text-shadow: 0 0 25px rgba(232, 234, 237, 1);
  }
}

.launcher-subtitle {
  font-size: 16px;
  color: var(--text-grey);
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(154, 160, 166, 0.5);
}

/* Контент лаунчера */
.launcher-content {
  margin-bottom: 30px;
}

.launcher-text {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
  text-shadow: 0 0 5px rgba(232, 234, 237, 0.3);
}

/* Кнопка скачивания */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(60, 64, 67, 0.3), rgba(26, 26, 46, 0.3));
  border: 2px solid var(--border-grey);
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(60, 64, 67, 0.1);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-download:hover {
  background: linear-gradient(135deg, rgba(60, 64, 67, 0.4), rgba(26, 26, 46, 0.4));
  border-color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 
    0 0 30px rgba(232, 234, 237, 0.5),
    inset 0 0 30px rgba(60, 64, 67, 0.2);
}

.btn-download svg {
  transition: transform 0.3s ease;
}

.btn-download:hover svg {
  transform: translateY(-2px);
}

/* Информация о сервере */
.launcher-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-grey);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.launcher-info p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(232, 234, 237, 0.5);
}

.launcher-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.launcher-info li {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  text-shadow: 0 0 3px rgba(154, 160, 166, 0.3);
}

.launcher-info li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--text-light);
  font-size: 12px;
}

/* Футер лаунчера */
.launcher-footer {
  border-top: 1px solid var(--border-grey);
  padding-top: 20px;
}

.launcher-footer p {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(232, 234, 237, 0.6);
}

/* Анимация появления карточки */
@keyframes launcherSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Скрытые элементы */
.none {
  display: none !important;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .container {
    margin-left: 40px;
    max-width: 400px;
  }
}

/* Адаптивность для смартфонов */
@media (max-width: 768px) {
  body {
    padding: 5px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }
  
  .container {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
  }
  
  .login-block,
  .launcher-card {
    padding: 12px 10px;
    border-width: 2px;
    border-radius: 12px;
  }
  
  /* Убираем декоративную рамку на мобильных */
  .login-block::before,
  .launcher-card::before {
    display: none;
  }
  
  /* Заголовки - компактнее */
  .login-header {
    margin-bottom: 15px;
  }
  
  .login-script,
  .launcher-title {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .login-subtitle,
  .launcher-subtitle {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  
  /* Форма - очень компактная */
  .reg-form {
    gap: 0;
    margin-bottom: 10px;
  }
  
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .form-group label {
    min-width: auto;
    font-size: 12px;
    margin-bottom: 2px;
  }
  
  .form-group input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }
  
  /* Капча - компактнее */
  .captcha-group {
    margin-bottom: 10px;
  }
  
  .captcha-wrapper {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .captcha-wrapper img {
    max-width: 100%;
    height: auto;
  }
  
  /* Чекбокс согласия - компактнее */
  .agreement-checkbox {
    margin: 8px 0;
    padding: 8px 10px;
  }
  
  .agreement-checkbox label {
    font-size: 11px !important;
    gap: 6px !important;
  }
  
  .agreement-checkbox input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
  }
  
  /* Кнопки - компактнее */
  .btn-submit {
    padding: 10px;
    font-size: 13px;
    margin-top: 3px;
  }
  
  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 15px;
  }
  
  /* Информация о сервере */
  .launcher-info {
    padding: 12px;
  }
  
  .launcher-info p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .launcher-info li {
    font-size: 12px;
    margin-bottom: 5px;
  }
  
  .launcher-text {
    font-size: 13px;
  }
}

/* Адаптивность для маленьких смартфонов */
@media (max-width: 480px) {
  body {
    padding: 3px;
    padding-top: 8px;
  }
  
  .login-block,
  .launcher-card {
    padding: 10px 8px;
  }
  
  .login-header {
    margin-bottom: 12px;
  }
  
  .login-script,
  .launcher-title {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .login-subtitle,
  .launcher-subtitle {
    font-size: 11px;
  }
  
  .form-group {
    margin-bottom: 8px;
  }
  
  .form-group label {
    font-size: 11px;
  }
  
  .form-group input {
    font-size: 13px;
    padding: 7px 9px;
  }
  
  .btn-submit {
    font-size: 12px;
    padding: 9px;
  }
  
  .agreement-checkbox {
    padding: 6px 8px;
    margin: 6px 0;
  }
  
  .agreement-checkbox label {
    font-size: 10px !important;
    gap: 5px !important;
  }
  
  .agreement-checkbox input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
  }
  
  .btn-download {
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .captcha-wrapper {
    margin-bottom: 6px;
  }
  
  .captcha-wrapper img {
    max-width: 90%;
  }
  
  .launcher-info {
    padding: 10px;
  }
  
  .launcher-info li {
    font-size: 11px;
    margin-bottom: 4px;
  }
}

/* Ландшафтная ориентация на смартфонах */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    padding-top: 10px;
  }
  
  .container {
    max-width: 450px;
  }
  
  .login-block,
  .launcher-card {
    padding: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* СОЦИАЛЬНЫЕ СЕТИ (нижний правый угол) */
/* ═══════════════════════════════════════════════════════════ */

.social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Яркий вращающийся блик (сверкание) */
.social-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

/* Блик при наведении */
.social-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.social-link svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.15) rotate(5deg);
}

/* Telegram - темный с ярким синим акцентом */
.social-link.telegram {
  background: 
    radial-gradient(circle at 50% 50%, rgba(34, 158, 217, 0.2), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 2px solid rgba(34, 158, 217, 0.4);
  animation: glow-telegram 2.5s ease-in-out infinite;
}

.social-link.telegram:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(34, 158, 217, 0.4), transparent 60%),
    linear-gradient(135deg, #1f1f33 0%, #1a1a2e 100%);
  border-color: rgba(34, 158, 217, 0.7);
  box-shadow: 
    0 6px 30px rgba(34, 158, 217, 0.5),
    0 0 40px rgba(34, 158, 217, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px) scale(1.05);
}

@keyframes glow-telegram {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 20px rgba(34, 158, 217, 0.3), 
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
  50% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 35px rgba(34, 158, 217, 0.6),
      0 0 50px rgba(34, 158, 217, 0.3),
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
}

/* VK - темный с ярким серо-синим акцентом */
.social-link.vk {
  background: 
    radial-gradient(circle at 50% 50%, rgba(91, 136, 189, 0.2), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 2px solid rgba(91, 136, 189, 0.4);
  animation: glow-vk 3s ease-in-out infinite;
}

.social-link.vk:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(91, 136, 189, 0.4), transparent 60%),
    linear-gradient(135deg, #1f1f33 0%, #1a1a2e 100%);
  border-color: rgba(91, 136, 189, 0.7);
  box-shadow: 
    0 6px 30px rgba(91, 136, 189, 0.5),
    0 0 40px rgba(91, 136, 189, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px) scale(1.05);
}

@keyframes glow-vk {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 20px rgba(91, 136, 189, 0.3), 
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
  50% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 35px rgba(91, 136, 189, 0.6),
      0 0 50px rgba(91, 136, 189, 0.3),
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
}

/* Discord - темный с ярким фиолетовым акцентом */
.social-link.discord {
  background: 
    radial-gradient(circle at 50% 50%, rgba(114, 137, 218, 0.2), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 2px solid rgba(114, 137, 218, 0.4);
  animation: glow-discord 3.5s ease-in-out infinite;
}

.social-link.discord:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(114, 137, 218, 0.4), transparent 60%),
    linear-gradient(135deg, #1f1f33 0%, #1a1a2e 100%);
  border-color: rgba(114, 137, 218, 0.7);
  box-shadow: 
    0 6px 30px rgba(114, 137, 218, 0.5),
    0 0 40px rgba(114, 137, 218, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px) scale(1.05);
}

@keyframes glow-discord {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 20px rgba(114, 137, 218, 0.3), 
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
  50% { 
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.7), 
      0 0 35px rgba(114, 137, 218, 0.6),
      0 0 50px rgba(114, 137, 218, 0.3),
      inset 0 0 15px rgba(0, 0, 0, 0.4); 
  }
}

/* Анимация появления (сверху) */
.social-link.telegram {
  animation: slideInTop 0.5s ease 0.1s backwards, glow-telegram 3s ease-in-out infinite;
}

.social-link.vk {
  animation: slideInTop 0.5s ease 0.2s backwards, glow-vk 3.5s ease-in-out infinite;
}

.social-link.discord {
  animation: slideInTop 0.5s ease 0.3s backwards, glow-discord 4s ease-in-out infinite;
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .social-links {
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
  }
  
  .social-link {
    width: 42px;
    height: 42px;
  }
  
  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .social-links {
    margin-top: 10px;
    padding-top: 10px;
    gap: 6px;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* КНОПКА ГОЛОСОВАНИЯ MMOTOP - DARK RPG СТИЛЬ */
/* ═══════════════════════════════════════════════════════════ */

.vote-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: 
    linear-gradient(135deg, rgba(20, 20, 25, 0.95) 0%, rgba(30, 20, 40, 0.95) 100%),
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1), transparent 70%);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(218, 165, 32, 0.6), rgba(139, 92, 246, 0.6)) 1;
  border-radius: 0;
  color: #daa520;
  font-family: 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 
    0 0 10px rgba(218, 165, 32, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  box-shadow: 
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(139, 92, 246, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    8px 0, 
    100% 0, 
    100% calc(100% - 8px), 
    calc(100% - 8px) 100%, 
    0 100%, 
    0 8px
  );
}

/* Магический эффект частиц */
.vote-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(218, 165, 32, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 60px;
  animation: magicParticles 20s linear infinite;
  opacity: 0.5;
}

@keyframes magicParticles {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

/* Световая волна при наведении */
.vote-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.3), transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
  pointer-events: none;
}

.vote-button:hover::after {
  width: 300px;
  height: 300px;
}

.vote-button:hover {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(218, 165, 32, 1),
    0 0 40px rgba(218, 165, 32, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(139, 92, 246, 0.4),
    0 0 80px rgba(218, 165, 32, 0.3),
    inset 0 0 30px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
  border-image: linear-gradient(135deg, rgba(218, 165, 32, 1), rgba(139, 92, 246, 1)) 1;
}

.vote-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(139, 92, 246, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.vote-button svg {
  flex-shrink: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.8));
  position: relative;
  z-index: 1;
}

.vote-button:hover svg {
  filter: drop-shadow(0 0 15px rgba(218, 165, 32, 1));
  animation: darkRpgPulse 1s ease infinite;
}

@keyframes darkRpgPulse {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1) rotate(-3deg);
  }
  75% {
    transform: scale(1.1) rotate(3deg);
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* СЕКЦИЯ ФОРУМ */
/* ═══════════════════════════════════════════════════════════ */

.forum-section {
  display: block;
  margin-top: 25px;
  padding-top: 20px;
  padding-bottom: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.forum-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  color: #ffd700 !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 215, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
}

.forum-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.forum-link:hover {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 1),
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.forum-link:hover::before {
  width: 200px;
  height: 200px;
}

.forum-link:active {
  transform: scale(0.98);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
  .forum-link {
    font-size: 18px;
    padding: 8px 18px;
    letter-spacing: 1.5px;
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .forum-section {
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .forum-link {
    font-size: 14px;
    padding: 8px 16px;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 480px) {
  .forum-section {
    margin-top: 15px;
    padding-top: 12px;
  }
  
  .forum-link {
    font-size: 12px;
    padding: 6px 14px;
    letter-spacing: 1px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* ВИДЖЕТ MMOTOP ГОЛОСОВАНИЯ (правый нижний угол - только десктоп) */
/* ═══════════════════════════════════════════════════════════ */

.mmotop-widget {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9998;
  transition: all 0.3s ease;
}

.mmotop-widget a {
  display: block;
  line-height: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.mmotop-widget a:hover {
  transform: scale(1.05) translateY(-3px);
  filter: drop-shadow(0 5px 15px rgba(139, 92, 246, 0.6));
}

.mmotop-widget img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  transition: all 0.3s ease;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
  .mmotop-widget {
    bottom: 5px;
    right: 5px;
  }
  
  .mmotop-widget img {
    max-width: 180px;
  }
}

/* СКРЫВАЕМ виджет-картинку на мобильных (используем кнопку вместо него) */
@media (max-width: 768px) {
  .mmotop-widget {
    display: none;
  }
  
  .vote-button {
    margin-top: 12px;
    padding: 11px 16px;
    font-size: 12px;
  }
  
  .vote-button svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .vote-button {
    padding: 9px 14px;
    font-size: 11px;
    gap: 6px;
    margin-top: 10px;
  }
  
  .vote-button svg {
    width: 16px;
    height: 16px;
  }
}