:root {
  /* Цвета из оригинального AE Hub */
  --accent-color: #f89406; /* Оранжевый цвет акцента */
  --dark-bg: #1a1a1a;
  --dark-bg-lighter: #222222;
  --sidebar-bg: #141414;
  --card-bg: #202020;
  --border-color: #333333;
  --text-primary: #ffffff;
  --text-secondary: #bbbbbb;
  --text-tertiary: #777777;
  --card-letter-bg: #2a2a2a;
  --btn-hover: rgba(248, 148, 6, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-glow: rgba(248, 148, 6, 0.5);
  --hub-text: #000000;
  --telegram-color: #229ED9;
  --telegram-hover: #1c8ac0;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1.25rem;
  --spacing-xl: 2rem;

  /* Font sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-xxl: 1.75rem;

  /* Border radius */
  --border-radius-sm: 3px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;

  /* Shadow variables */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Запрет выделения текста */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden; /* Предотвращает горизонтальную прокрутку */
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  height: 100vh;
  margin: 0;
  overflow-x: hidden; /* Дублирую для надежности */
  position: relative; /* Для лучшего контроля дочерних элементов */
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 15px var(--accent-glow), 0 0 20px var(--accent-glow); }
  100% { box-shadow: 0 0 5px var(--accent-glow); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Основной контент */
.content {
  max-width: 900px;
  width: 100%;
  background-color: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box; /* Учитывает padding в общей ширине */
  transform: translateY(0); /* Предотвращает скачки при анимации */
}

/* Основные стили контейнера */
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden; /* Предотвращает прокрутку внутри контейнера */
  z-index: 1;
  box-sizing: border-box; /* Учитывает padding в общей ширине */
  transition: opacity 0.8s ease-out; /* Плавное появление */
}

/* Фоновые элементы */
.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: linear-gradient(45deg, var(--accent-color), #ff5722);
  filter: blur(60px);
  animation: gradientMove 15s ease infinite;
}

.element-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
}

.element-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  animation-delay: 2s;
}

.element-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 10%;
  animation-delay: 1s;
}

.element-4 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 15%;
  animation-delay: 3s;
}

/* Логотип */
.logo-container {
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: var(--text-primary);
  font-size: 42px;
  font-weight: bold;
  margin-right: 5px;
}

.logo .hub {
  background-color: var(--accent-color);
  color: var(--hub-text);
  font-size: 32px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: borderGlow 3s infinite;
}

/* Заголовки */
.title {
  font-size: 36px;
  margin-bottom: 15px;
  background: linear-gradient(to right, #ffffff, #f89406);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Особенности */
.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  width: 120px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.feature-item i {
  font-size: 24px;
  color: var(--accent-color);
}

.feature-item span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Telegram контейнер */
.telegram-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out 0.8s both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.telegram-container h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 20px;
}

/* Кнопка с логотипом Telegram в стиле AE Hub */
.telegram-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--card-bg);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 10px var(--accent-glow);
  position: relative;
  overflow: hidden;
  animation: borderGlow 3s infinite;
}

.telegram-logo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(248, 148, 6, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.telegram-logo-btn:hover {
  background-color: rgba(248, 148, 6, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--accent-glow);
}

.telegram-logo-btn:hover::before {
  left: 100%;
}

.telegram-logo-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.telegram-logo-btn i {
  position: relative;
  z-index: 2;
}

/* Стили для таймера обратного отсчета */
.countdown-container {
  width: 100%;
  max-width: 700px;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  min-width: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 5px;
}

.countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.countdown-value {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.countdown-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.countdown-separator {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-secondary);
  margin: 0 5px;
  align-self: center;
  padding-bottom: 15px;
}

.countdown-note {
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Стили для информации о владельце */
.owner-info {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  animation: fadeIn 0.8s ease-out 1s both;
}

.owner-info a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.owner-info a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Адаптивность */
@media (max-width: 768px) {
  .content {
    padding: 30px 20px;
  }

  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .features-container {
    gap: 15px;
  }

  .feature-item {
    width: 100px;
    padding: 15px;
  }

  .countdown {
    gap: 5px;
  }
  
  .countdown-item {
    min-width: 80px;
    padding: 10px;
  }
  
  .countdown-value {
    font-size: 28px;
  }
  
  .countdown-label {
    font-size: 12px;
  }
  
  .countdown-separator {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .features-container {
    gap: 10px;
  }

  .feature-item {
    width: 80px;
    padding: 10px;
  }

  .feature-item i {
    font-size: 20px;
  }

  .feature-item span {
    font-size: 12px;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .countdown-item {
    min-width: 70px;
    padding: 8px;
  }
  
  .countdown-value {
    font-size: 24px;
  }
  
  .countdown-separator {
    display: none;
  }
  
  .countdown-note {
    font-size: 12px;
  }
}

/* Стили для splash screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-bg);
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden; /* Предотвращает прокрутку */
  box-sizing: border-box; /* Учитывает padding в общей ширине */
}

.splash-logo {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transform: scale(1.5);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.splash-logo:hover {
  transform: scale(1.7);
}

.splash-logo span {
  color: var(--text-primary);
  font-size: 42px;
  font-weight: bold;
  margin-right: 5px;
}

.splash-logo .hub {
  background-color: var(--accent-color);
  color: var(--hub-text);
  font-size: 32px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: borderGlow 3s infinite, pulse 2s infinite;
}

.splash-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 20px;
  opacity: 0.7;
  animation: fadeIn 1s ease-out 0.5s both, floating 2s ease-in-out infinite;
} 