/* Базовые сбросы */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow-y: auto !important;
}

/* Неоновый фон */
.neon-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 100, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 100, 0.15) 0%, transparent 40%);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Основной контейнер */
.app {
  text-align: center;
  width: 90%;
  max-width: 400px;
}

/* Текст */
.welcome-text {
  margin-bottom: 50px;
}

.welcome-text span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
  letter-spacing: 5px;
  margin-bottom: 5px;
}

/* Кнопки */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.neon-button {
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  text-decoration: none; /* Отключаем подчёркивание */
  display: inline-block; /* Для корректного отображения кнопки-ссылки */
  text-align: center;
}

.neon-button.blue {
  background: linear-gradient(90deg, #0066ff, #00ccff);
  color: white;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

.neon-button.green {
  background: linear-gradient(90deg, #00cc66, #00ffaa);
  color: white;
  box-shadow: 0 0 15px rgba(0, 204, 102, 0.5);
}

.neon-button:active {
  transform: scale(0.95);
}

.neon-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(30deg);
  transition: all 0.3s ease;
}

.neon-button:hover::after {
  left: 100%;
}

.neon-button:hover {
  text-decoration: none;
}

/* Анимация неона */
.neon-effect {
  animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px rgba(0, 200, 255, 0.5),
      0 0 20px rgba(0, 200, 255, 0.3);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* Адаптация под маленькие экраны */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .neon-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
/* Форма регистрации */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto 30px;
}

.auth-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.auth-form input:focus {
  border-color: #00ccff;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-link {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.auth-link a {
  color: #00ccff;
  text-decoration: none;
  font-weight: 600;
}
input:invalid {
  border-color: #ff4444 !important;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
/* Добавьте в конец файла */

/* Уведомления */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(200%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(90deg, #00cc66, #00b359);
}

.notification.error {
  background: linear-gradient(90deg, #ff4757, #e84118);
}

/* Форма входа */
#loginForm {
  margin-bottom: 20px;
}

.auth-link a {
  display: block;
  margin-top: 10px;
  color: #00ccff;
}

/* Отключаем стандартную валидацию */
input:invalid {
  border-color: rgba(0, 200, 255, 0.3) !important;
  animation: none !important;
}
/* Dashboard Styles */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px;
  color: white;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.user-balance {
  background: rgba(0, 200, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
}

.dashboard-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* AI Assistant Button */
.ai-button {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00ccff, #0066ff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 0 20px rgba(0, 200, 255, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.ai-button i {
  font-size: 2rem;
  color: white;
}

.ai-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.9);
}

/* Bottom Navigation */
/* Стили для нижнего бара с кругом ИИ */
/* Стили для компактного нижнего бара */
/* Нижний навигационный бар */
.bottom-nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 25px 25px 25px 25px; /* Округление со всех сторон */
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  height: 70px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Группы иконок */
.nav-group {
  display: flex;
  gap: 50px; /* Расстояние между иконками в группе */
  z-index: 2;
}

.left-group {
  margin-right: auto; /* Прижимаем к левому краю */
}

.right-group {
  margin-left: auto; /* Прижимаем к правому краю */
}

/* Иконки навигации */
.nav-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-item:hover {
  color: #00ccff;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.7);
}

/* Центральный круг ИИ */
.ai-circle-container {
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  z-index: 3;
}

.ai-circle {
  width: 55px;
  height: 55px;
  background: radial-gradient(circle, rgba(0,200,255,0.9) 0%, rgba(0,120,255,0.9) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 15px rgba(0, 180, 255, 0.8),
    inset 0 0 8px rgba(255, 255, 255, 0.4);
  animation: pulse 2s infinite alternate;
  cursor: pointer;
  transition: all 0.3s;
}

.ai-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.9);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 180, 255, 0.8); }
  100% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 200, 255, 0.9); }
}
.user-uid {
  color: rgba(0, 200, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 5px;
  letter-spacing: 1px;
}
/* Главная страница */
.main-content {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.action-btn {
  background: rgba(0, 150, 255, 0.15);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 12px;
  padding: 20px 10px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.action-btn i {
  font-size: 1.8rem;
  color: #00ccff;
}

.action-btn:hover {
  background: rgba(0, 200, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

/* Блоки информации */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.dashboard-block {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(0, 200, 255, 0.2);
  transition: all 0.3s;
}

.dashboard-block:hover {
  border-color: #00ccff;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.1);
}

.dashboard-block i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #00ccff;
}

.dashboard-block h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.dashboard-block p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Страница профиля */
.profile-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #00ccff, #0066ff);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  font-weight: bold;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.menu-item i {
  font-size: 1.2rem;
  color: #00ccff;
  width: 30px;
  text-align: center;
}

.menu-item:hover {
  background: rgba(0, 200, 255, 0.1);
  transform: translateX(5px);
}

.logout {
  margin-top: 30px;
  color: #ff4757;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.logout i {
  color: #ff4757;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .action-btn {
    padding: 15px 5px;
    font-size: 0.9rem;
  }
  
  .action-btn i {
    font-size: 1.5rem;
  }
  
  .dashboard-block {
    padding: 20px 15px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}
/* Стили для баланса */
.user-balance {
  background: rgba(0, 200, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .user-balance {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}
/* Стили для переключения страниц */
.hidden {
  display: none !important;
}

.main-content, .profile-content {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Активная кнопка навигации */
.nav-item.active {
  color: #00ccff;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.7);
}

.nav-item.active:hover {
  transform: none;
}
/* Секция апгрейдов */
/* Секция апгрейдов - полностью переработанная */
.upgrades-section {
  width: 100%;
  padding: 15px;
  padding-bottom: 100px; /* Чтобы не перекрывалось нижним баром */
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.upgrade-card {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  position: relative;
  overflow: visible;
  transition: all 0.3s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.upgrade-card:hover {
  border-color: #00ccff;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
}

.upgrade-icon {
  font-size: 2.2rem;
  color: #00ccff;
  margin-bottom: 10px;
  text-align: center;
}

.upgrade-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
  text-align: center;
}

.upgrade-effect {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-align: center;
}

.upgrade-level {
  color: rgba(0, 200, 255, 0.7);
  font-size: 0.85rem;
  margin: 5px 0;
  text-align: center;
}

.upgrade-level span {
  color: #00ccff;
  font-weight: bold;
}

.upgrade-cost {
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.9rem;
}

.upgrade-btn {
  background: rgba(0, 150, 255, 0.2);
  border: none;
  color: #00ccff;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  margin-top: auto;
  font-size: 0.9rem;
}

.upgrade-btn:hover {
  background: rgba(0, 200, 255, 0.3);
}

.upgrade-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  text-align: center;
  margin-top: 10px;
}

.upgrade-description p {
  margin: 10px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.upgrade-buy {
  display: block !important; /* Важно: принудительно показываем кнопку */
  background: linear-gradient(90deg, #00cc66, #00b359);
  border: none;
  color: white;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s;
  font-size: 0.9rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.upgrade-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 204, 102, 0.4);
}

.upgrade-card.active .upgrade-description {
  max-height: 300px;
  padding-top: 10px;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 400px) {
  .upgrades-grid {
    gap: 10px;
  }
  
  .upgrade-card {
    padding: 12px;
    min-height: 260px;
  }
  
  .upgrade-icon {
    font-size: 1.8rem;
  }
  
  .upgrade-card h3 {
    font-size: 1rem;
  }
  
  .upgrade-btn, .upgrade-buy {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}
/* AI Trader Page */
.ai-trader-content {
  padding: 16px;
  padding-bottom: 80px; /* Добавлено, чтобы не залезало под нижнюю навигацию */
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.ai-graph-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.ai-graph-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}
.ai-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
}

.ai-stat {
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .ai-stat {
    flex: 1 1 100%;
  }
}
.ai-trader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

.ai-status {
  background: rgba(255, 50, 50, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.ai-status span {
  color: #ff4757;
}

.ai-status.running span {
  color: #00cc66;
}

.ai-graph-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  height: 250px;
}

.ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.ai-stat {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.ai-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.ai-stat-value {
  color: #00ccff;
  font-size: 1.3rem;
  font-weight: bold;
}

.ai-brand {
  text-align: center;
  margin-bottom: 30px;
}

.ai-brand h3 {
  color: #00ccff;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.ai-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.ai-control-btn {
  background: linear-gradient(90deg, #ff4757, #e84118);
  border: none;
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.ai-control-btn.running {
  background: linear-gradient(90deg, #00cc66, #00b359);
}

.ai-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* Адаптация для мобильных */
@media (max-width: 768px) {
  .ai-trader-content {
    padding-bottom: 70px; /* Высота нижнего бара */
  }
  
  .ai-stats {
    grid-template-columns: 1fr;
  }
  
  .ai-graph-container {
    height: 150px;
  }
}
/* Partners Page Styles */
.partners-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  animation: fadeIn 0.5s ease;
}

.partners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

.partners-status {
  background: rgba(0, 200, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.partners-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.partners-stat {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.partners-stat-value {
  color: #00ccff;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.partners-stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.referral-section {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.referral-section h3 {
  margin-bottom: 20px;
  color: #00ccff;
}

/*.qr-code {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  padding: 10px;
  background: white;
  border-radius: 10px;
}*/

.referral-link {
  display: flex;
  margin-bottom: 30px;
}

.referral-link input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 8px 0 0 8px;
  padding: 12px 15px;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.copy-btn {
  background: rgba(0, 200, 255, 0.3);
  border: none;
  border-radius: 0 8px 8px 0;
  color: white;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(0, 200, 255, 0.5);
}

.referral-code {
  margin-top: 20px;
}

.referral-code h4 {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.code-container span {
  background: rgba(0, 200, 255, 0.2);
  padding: 8px 15px;
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 1px;
}

.referral-info {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
}

.referral-info h3 {
  margin-bottom: 15px;
  color: #00ccff;
}

.referral-info ul {
  list-style: none;
  padding-left: 0;
}

.referral-info li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
}

.referral-info li::before {
  content: '•';
  color: #00ccff;
  position: absolute;
  left: 10px;
}

.highlight {
  color: #00ffaa;
  font-weight: bold;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .partners-stats {
    grid-template-columns: 1fr;
  }
  
  .referral-link input {
    font-size: 0.8rem;
  }
}
/* Таймер */
.ai-timer {
  margin: 20px 0;
  text-align: center;
}

.timer-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00cc66, #00ffaa);
  width: 100%;
  transition: width 1s linear;
}

.timer-text {
  font-size: 1.2rem;
  color: #00ccff;
  font-family: monospace;
}

/* История сделок */
/* Стили для истории сделок */
/* Стили для истории сделок */
.trade-history {
  background: rgba(0, 40, 80, 0.3);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.trade-history h3 {
  color: #00ccff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-history h3 i {
  font-size: 1.1rem;
}

.history-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Стили для полосы прокрутки */
.history-list::-webkit-scrollbar {
  width: 5px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.5);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
  background: #00ccff;
}

.history-item {
  background: rgba(0, 20, 40, 0.5);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid rgba(0, 200, 255, 0.5);
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(0, 30, 60, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 200, 255, 0.1);
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item.total {
  background: rgba(0, 60, 120, 0.5);
  border-left: 3px solid #00ffaa;
}

.trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trade-pair {
  font-weight: bold;
  color: #00ccff;
  font-size: 1rem;
}

.trade-pair small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.trade-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.trade-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.trade-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trade-prices span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.trade-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.history-profit {
  color: #00ffaa;
  font-weight: bold;
}

.history-loss {
  color: #ff4757;
  font-weight: bold;
}

.trade-commission {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Анимация появления новых сделок */
@keyframes newTrade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-item.new-trade {
  animation: newTrade 0.5s ease forwards;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .trade-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .trade-result {
    align-items: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 200, 255, 0.2);
  }
  
  .history-list {
    max-height: 200px;
  }
}
.ai-status {
    background: rgba(0, 200, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.ai-status.running {
    background: rgba(0, 255, 100, 0.2);
}
.withdraw-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 0 20px 0;
  text-align: center;
  animation: fadeIn 0.4s;
}
.withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 25px;
}
.withdraw-form label {
  text-align: left;
  color: #00ccff;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.withdraw-form input {
  border-radius: 8px;
  border: 1px solid #00ccff55;
  padding: 10px 12px;
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  color: white;
}
.withdraw-form button[type="submit"] {
  margin-top: 8px;
}
.withdraw-rules {
  background: rgba(0,200,255,0.08);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: left;
  font-size: 0.98rem;
  margin-top: 14px;
  color: #e0f6ff;
}
.withdraw-rules h3 {
  color: #00ffaa;
  margin-bottom: 7px;
  font-size: 1.04rem;
}
.withdraw-rules ul {
  padding-left: 15px;
  margin: 0;
}
.withdraw-rules li {
  margin-bottom: 6px;
  color: #aef;
}
.highlight {
  color: #FFD700;
  font-weight: 700;
}
.back-btn {
  background: none;
  color: #00ccff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 15px;
  float: left;
  transition: color .2s;
}
.back-btn:hover {
  color: #00ffaa;
}
@media (max-width: 600px) {
  .withdraw-content {
    max-width: 98vw;
    min-width: unset;
    padding: 12vw 2vw 5vw 2vw;
    margin: 0 auto;
  }
  .withdraw-form {
    gap: 14px;
  }
  .withdraw-form input {
    padding: 12px 10px;
    font-size: 1.09rem;
  }
  .withdraw-form label {
    font-size: 1.01rem;
  }
  .withdraw-rules {
    font-size: 0.93rem;
    padding: 12px 4vw;
  }
  .back-btn {
    font-size: 1.08rem;
    margin-bottom: 12px;
    margin-left: -6px;
  }
}
.history-row {
  padding: 10px 0;
  color: #fff;
}
.history-row i {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}
.about-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 60px 16px;
  color: #fff;
  animation: fadeIn 0.5s;
}
.about-block {
  background: rgba(0,40,80,0.13);
  border-radius: 12px;
  padding: 24px 18px;
  margin-bottom: 22px;
  font-size: 1.05em;
}
.about-block ul {
  margin: 15px 0 0 16px;
  padding-left: 0;
}
.about-block li {
  margin-bottom: 8px;
  list-style: disc;
}
@media (max-width: 600px) {
  .about-content {
    max-width: 99vw;
    padding: 6vw 2vw 16vw 2vw;
    font-size: 1em;
  }
  .about-block {
    padding: 16px 6vw;
    border-radius: 9px;
    font-size: 0.98em;
  }
  .about-block ul {
    margin-left: 10px;
  }
}
.admin-panel-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 80px 16px;
  color: #fff;
}
.admin-row {
  background: rgba(0,40,80,0.09);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px 10px 8px 10px;
  font-size: 1.08em;
  box-shadow: 0 0 10px #001a2f33;
}
.admin-tx-form {
  display: inline-block;
  margin: 10px 0 0 0;
}
.admin-tx-input {
  border-radius: 6px;
  border: 1px solid #00ccff88;
  padding: 6px 12px;
  margin-right: 7px;
  font-size: 0.98em;
}
.mini {
  padding: 6px 18px !important;
  font-size: 0.98em !important;
}
.withdraw-form {
  max-width: 360px;
  margin: 24px auto 0 auto;
  background: #181b22;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 32px 24px 20px 24px;
  font-family: 'Rajdhani', Arial, sans-serif;
}

.withdraw-form h2 {
  color: #00ffaa;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
}

.withdraw-form .form-group {
  margin-bottom: 18px;
}

.withdraw-form label {
  display: block;
  color: #b2b6bd;
  font-size: 15px;
  margin-bottom: 6px;
}

.withdraw-form input[type="text"],
.withdraw-form input[type="number"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #282c37;
  background: #22242b;
  color: #fff;
  font-size: 17px;
  margin-bottom: 2px;
  outline: none;
  transition: border 0.2s;
}

.withdraw-form input[type="text"]:focus,
.withdraw-form input[type="number"]:focus {
  border: 1.5px solid #00ffaa;
}

.withdraw-info {
  background: #212530;
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #aaa;
}

.withdraw-info ul {
  margin: 0; padding-left: 18px;
}

.withdraw-form .main-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 9px;
  font-size: 17px;
  margin-bottom: 12px;
  font-weight: 600;
  background: linear-gradient(90deg,#00ffaa,#00aaff);
  color: #181b22;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,255,170,0.08);
  transition: background 0.17s;
}
.withdraw-form .main-btn.secondary {
  background: #232731;
  color: #aaa;
  border: 1px solid #262b36;
}
.withdraw-form .main-btn:active {
  filter: brightness(0.92);
}
.withdraw-history-block {
  background: #191a27;
  border-radius: 14px;
  box-shadow: 0 0 18px #00ffaa25;
  padding: 24px 15px 12px 15px;
  margin: 28px auto 0 auto;
  max-width: 410px;
}
.withdraw-history-block h3 {
  color: #00ffaa;
  font-size: 21px;
  margin-bottom: 14px;
  text-align: center;
}
.withdraw-history-item {
  background: #23243a;
  margin-bottom: 12px;
  padding: 12px 13px 7px 13px;
  border-radius: 8px;
  box-shadow: 0 0 7px #00ffaa22;
  font-size: 15px;
}
.withdraw-history-item .status {
  font-weight: bold;
  font-size: 14px;
}
.withdraw-history-item .status.done { color: #00ffaa; }
.withdraw-history-item .status.pending { color: #ffcb00; }
.withdraw-history-item .txid-btn {
  background: none; border: none; color: #0ff; margin-left: 8px;
  cursor: pointer; padding: 1px 6px; border-radius: 4px;
  font-size: 13px;
  transition: background 0.15s;
}
.withdraw-history-item .txid-btn:hover { background: #222e33; }
#closeWithdrawHistory.main-btn {
  width: 100%;
  padding: 13px 0;
  margin-top: 18px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 600;
  background: #232731;
  color: #00ffaa;
  border: 1px solid #262b36;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
  box-shadow: 0 2px 12px rgba(0,255,170,0.08);
}
#closeWithdrawHistory.main-btn:active {
  filter: brightness(0.94);
}
#depositPage {
  padding: 28px 20px 40px 20px;
  max-width: 400px;
  margin: 24px auto;
  background: rgba(10,20,40,0.85);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0ff2, 0 0 0 1.5px #222b, 0 2px 8px #00ffaa11;
  animation: showDeposit 0.7s cubic-bezier(.6,-0.13,.59,1.09);
}
@keyframes showDeposit { from { opacity:0; transform: translateY(40px); } to { opacity:1; transform: none; } }

#depositPage h2 {
  color: #0ff;
  font-size: 2rem;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 0.04em;
}

#depositTronAddress {
  font-family: 'Rajdhani', monospace;
  color: #fffa;
  font-size: 1.15rem;
  background: #222c;
  padding: 9px 15px;
  border-radius: 10px;
  margin: 0 10px 10px 0;
  letter-spacing: 0.04em;
  box-shadow: 0 0 8px #0ff8;
  word-break: break-all;
  display: inline-block;
}

#copyDepositAddressBtn {
  background: linear-gradient(90deg, #0ff 60%, #00ffa0 100%);
  border: none;
  color: #181f27;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 18px;
  margin-left: 6px;
  cursor: pointer;
  box-shadow: 0 0 7px #0ff9;
  transition: background 0.16s, color 0.13s;
}
#copyDepositAddressBtn:hover { background: #fff4; color: #0ff; }

#depositQr {
  margin: 22px auto 18px auto;
  text-align: center;
  border-radius: 14px;
  background: #162733bb;
  padding: 16px 8px;
  box-shadow: 0 0 24px #0ff2;
  width: 200px;
}

#depositPage button#depositBackBtn {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #00ffaa 40%, #0ff 100%);
  color: #15191e;
  border: none;
  border-radius: 10px;
  font-size: 1.13rem;
  padding: 13px 0 12px 0;
  margin-top: 28px;
  box-shadow: 0 0 10px #0ff7;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s;
}
#depositPage button#depositBackBtn:hover { background: #0ff6; color: #fff; }
.partners-content .qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0 12px 0;
}
.partners-content .qr-code canvas, 
.partners-content .qr-code img {
  margin: 0 auto;
  border-radius: 10px;
  background: #101522;
  box-shadow: 0 4px 24px #00ffaa10;
  padding: 8px;
}
.qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px auto;
  width: 100%;
  min-height: 160px;
  text-align: center;
}
/* Стили для блока поддержки */
#supportPage {
  max-width: 380px;
  margin: 28px auto 0 auto;
  padding: 34px 18px 28px 18px;
  background: rgba(18, 27, 48, 0.95);
  border-radius: 22px;
  box-shadow: 0 4px 40px #0066ff44;
  text-align: center;
  color: #cbe9ff;
}

#supportPage h2 {
  font-size: 1.7em;
  color: #0ff;
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-family: 'Rajdhani', 'Montserrat', sans-serif;
}

.support-block {
  background: rgba(23, 40, 72, 0.90);
  border-radius: 12px;
  box-shadow: 0 2px 16px #00eaff33;
  padding: 26px 14px 18px 14px;
  margin-bottom: 24px;
  font-size: 1.14em;
}

.support-link {
  display: inline-block;
  margin: 9px 0 5px 0;
  color: #00ffaa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: color .2s;
}

.support-link i {
  margin-right: 6px;
  font-size: 1.13em;
}

.support-link:hover {
  color: #fff;
  text-shadow: 0 0 8px #00ffe1, 0 0 2px #0033ff;
}

.neon-button.blue {
  margin-top: 6px;
  background: linear-gradient(90deg, #0057ff, #00fff7);
  color: #fff;
  box-shadow: 0 0 12px #00f0ff99;
  border-radius: 14px;
  font-weight: bold;
  padding: 12px 28px;
  font-size: 1.12em;
  border: none;
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
}
.neon-button.blue:hover {
  background: linear-gradient(90deg, #00fff7, #0057ff);
  box-shadow: 0 0 24px #00f0ffcc, 0 0 8px #0033ff99;
}
#rulesPage {
  max-width: 420px;
  margin: 38px auto 0 auto;
  padding: 36px 18px 32px 18px;
  background: rgba(18, 27, 48, 0.97);
  border-radius: 22px;
  box-shadow: 0 6px 40px #0077ff33;
  text-align: center;
  color: #e8f7ff;
}

#rulesPage h2 {
  font-size: 1.5em;
  color: #0ff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-family: 'Rajdhani', 'Montserrat', sans-serif;
}

.rules-text {
  background: rgba(23, 40, 72, 0.90);
  border-radius: 12px;
  box-shadow: 0 2px 16px #00eaff22;
  padding: 26px 18px 12px 18px;
  margin-bottom: 22px;
  font-size: 1.13em;
  max-height: 53vh;
  overflow-y: auto;
}

.rules-text ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.rules-text li {
  text-align: left;
  margin-bottom: 11px;
  position: relative;
  padding-left: 18px;
}

.rules-text li:before {
  content: '•';
  color: #00ffee;
  font-size: 1.12em;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.85;
}

.neon-button.blue {
  margin-top: 16px;
  background: linear-gradient(90deg, #0057ff, #00fff7);
  color: #fff;
  box-shadow: 0 0 12px #00f0ff99;
  border-radius: 14px;
  font-weight: bold;
  padding: 12px 28px;
  font-size: 1.12em;
  border: none;
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
}
.neon-button.blue:hover {
  background: linear-gradient(90deg, #00fff7, #0057ff);
  box-shadow: 0 0 24px #00f0ffcc, 0 0 8px #0033ff99;
}
.action-btn.buy-bot {
  position: relative;
}
.action-btn.buy-bot::after {
  content: "Скоро!";
  position: absolute;
  top: 7px;
  right: 16px;
  background: #111f;
  color: #00ffaa;
  font-size: 12px;
  border-radius: 8px;
  padding: 2px 9px;
  letter-spacing: 1px;
}
.dashboard-block.ai-level {
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.dashboard-block.ai-level:hover {
  box-shadow: 0 0 18px #00ffaa55, 0 0 3px #00ffaa;
}
.modal-tasks {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,10,30,0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-tasks.hidden { display: none; }
.modal-tasks-content {
  background: #171f30;
  border-radius: 18px;
  box-shadow: 0 4px 32px #000b;
  padding: 32px 32px 20px 32px;
  min-width: 320px;
  max-width: 95vw;
  text-align: center;
  color: #fff;
  border: 1px solid #0099ff33;
}
.modal-tasks-content h2 {
  margin-bottom: 16px;
  font-size: 24px;
  color: #00eaff;
}
#tasksModalCloseBtn {
  margin-top: 20px;
  min-width: 160px;
}
