/* ========================================
   ПРОСТАЯ ЕДИНАЯ СИСТЕМА СТИЛЕЙ
   ======================================== */

/* Запрет горизонтальной прокрутки */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Запрет горизонтальной прокрутки для всех элементов */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Дополнительная защита от горизонтального скролла */
body {
  position: relative ;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Запрет скролла для корневого контейнера */
#root {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Запрет горизонтального скролла для всех контейнеров */
.container, .card, .modal {
  overflow-x: hidden;
  max-width: 100%;
}

/* Старые стили Tooltip удалены */


/* Старые стили referral-tooltip удалены */

/* Базовые переменные */
:root {
  /* Основные цвета */
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Нейтральные цвета */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
  
  /* Фоны */
  --bg-primary: var(--white);
  --bg-secondary: var(--light-gray);
  --bg-dark: var(--dark-gray);
  
  /* Текст */
  --text-primary: var(--black);
  --text-secondary: var(--gray);
  --text-light: var(--white);
  
  /* Границы */
  --border-color: #dee2e6;
  --border-radius: 8px;
  --border-width: 1px;
  
  /* Отступы */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Размеры шрифтов */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 30px;
  
  /* Веса шрифтов */
  --font-normal: 400;
  --font-medium: 500;
  --font-bold: 700;
  
  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition: 0.2s ease;
  
  /* Z-index */
  --z-modal: 1000;
  --z-nav: 100;
  --z-header: 50;
}

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: #ffffff !important;
}

#root {
  min-height: 100vh;
}

/* Основной макет */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app__main {
  flex: 1;
  padding-bottom: 80px; /* Отступ для навигации */
}

.app__blocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-xl);
  text-align: center;
  background: var(--bg-secondary);
}

.app__blocked h2 {
  font-size: var(--font-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.app__blocked p {
  font-size: var(--font-base);
  color: var(--text-secondary);
  max-width: 400px;
}

/* Загрузка */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--spacing-xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-md);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Анимации для загрузки точек */
@keyframes loadingDot1 {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingDot2 {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loadingDot3 {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-dot-1 {
  animation: loadingDot1 1.4s infinite ease-in-out both;
  animation-delay: -0.32s;
}

.loading-dot-2 {
  animation: loadingDot2 1.4s infinite ease-in-out both;
  animation-delay: -0.16s;
}

.loading-dot-3 {
  animation: loadingDot3 1.4s infinite ease-in-out both;
  animation-delay: 0s;
}

.loading-container p {
  color: var(--text-secondary);
  font-size: var(--font-base);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-bold);
  line-height: 1.2;
}

h1 { font-size: var(--font-3xl); margin-bottom: var(--spacing-md); }
h2 { font-size: var(--font-2xl); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--font-xl); margin-bottom: var(--spacing-sm); }
h4 { font-size: var(--font-lg); margin-bottom: var(--spacing-sm); }
h5 { font-size: var(--font-base); margin-bottom: var(--spacing-sm); }
h6 { font-size: var(--font-sm); margin-bottom: var(--spacing-sm); }

/* Параграфы */
p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* Ссылки */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dark-gray);
  text-decoration: underline;
}

/* Кнопки */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition: all var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--border-width) solid transparent;
  border-radius: var(--border-radius);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 40px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn--secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn--secondary:hover {
  background-color: #545b62;
  border-color: #545b62;
}

.btn--success {
  background-color: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
}

.btn--success:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
}

.btn--warning {
  background-color: var(--warning-color);
  color: var(--black);
  border-color: var(--warning-color);
}

.btn--warning:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.btn--danger {
  background-color: var(--danger-color);
  color: var(--white);
  border-color: var(--danger-color);
}

.btn--danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn--outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn--sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-sm);
  min-height: 32px;
}

.btn--lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-lg);
  min-height: 48px;
}

.btn--full {
  width: 100%;
}

/* Карточки */
.card {
  background-color: var(--white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--primary {
  border-color: var(--primary-color);
}

.card--success {
  border-color: var(--success-color);
}

.card--warning {
  border-color: var(--warning-color);
}

.card--danger {
  border-color: var(--danger-color);
}

.card__header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: var(--border-width) solid var(--border-color);
}

.card__title {
  font-size: var(--font-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-xs);
}

.card__subtitle {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.card__body {
  margin-bottom: var(--spacing-md);
}

.card__footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: var(--border-width) solid var(--border-color);
}

/* Статистические карточки */
.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.stat-card__icon {
  font-size: var(--font-2xl);
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.stat-card__value {
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.stat-card__label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal__header {
  padding: var(--spacing-lg);
  border-bottom: var(--border-width) solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: var(--font-lg);
  font-weight: var(--font-bold);
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: var(--font-xl);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  max-height: 60vh;
}

.modal__footer {
  padding: var(--spacing-lg);
  border-top: var(--border-width) solid var(--border-color);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

/* Навигация */
.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: var(--border-width) solid var(--border-color);
  z-index: var(--z-nav);
  padding: var(--spacing-xs) 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.navigation__content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.navigation__item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-radius: var(--border-radius);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 60px;
  justify-content: center;
}

.navigation__item:hover {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
}

.navigation__item--active {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
  font-weight: var(--font-medium);
}

.navigation__item--active .navigation__icon {
  transform: scale(1.1);
}

.navigation__icon {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-xs);
  transition: transform var(--transition);
}

.navigation__label {
  font-size: var(--font-xs);
  font-weight: var(--font-medium);
  line-height: 1;
}

/* Заголовок */
.header {
  background-color: var(--white);
  border-bottom: var(--border-width) solid var(--border-color);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.header__title {
  font-size: var(--font-lg);
  font-weight: var(--font-bold);
  margin: 0;
  color: var(--text-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__button {
  background: none;
  border: none;
  font-size: var(--font-base);
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: all var(--transition);
}

.header__button:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

/* Формы */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-base);
  background-color: var(--white);
  transition: all var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-error {
  color: var(--danger-color);
  font-size: var(--font-sm);
  margin-top: var(--spacing-xs);
}

.form-success {
  color: var(--success-color);
  font-size: var(--font-sm);
  margin-top: var(--spacing-xs);
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing утилиты */
.space-y-xs > * + * { margin-top: var(--spacing-xs); }
.space-y-sm > * + * { margin-top: var(--spacing-sm); }
.space-y-md > * + * { margin-top: var(--spacing-md); }
.space-y-lg > * + * { margin-top: var(--spacing-lg); }
.space-y-xl > * + * { margin-top: var(--spacing-xl); }

.space-x-xs > * + * { margin-left: var(--spacing-xs); }
.space-x-sm > * + * { margin-left: var(--spacing-sm); }
.space-x-md > * + * { margin-left: var(--spacing-md); }
.space-x-lg > * + * { margin-left: var(--spacing-lg); }
.space-x-xl > * + * { margin-left: var(--spacing-xl); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-white { color: var(--white); }

.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-bold { font-weight: var(--font-bold); }

/* Flexbox утилиты */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* Grid утилиты */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Отступы */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* Margin утилиты */
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.px-xs { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-sm { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-lg { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-xl { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }

.py-xs { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Радиусы */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: 4px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 50%; }

/* Тени */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Фоны */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-white { background-color: var(--white); }
.bg-transparent { background-color: transparent; }

/* Переходы */
.transition { transition: all var(--transition); }

/* Контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Размеры */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-full { max-width: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.hidden { display: none; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-nav { z-index: var(--z-nav); }
.z-header { z-index: var(--z-header); }
.z-modal { z-index: var(--z-modal); }

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .app__blocked {
    padding: var(--spacing-lg);
  }
  
  .app__blocked h2 {
    font-size: var(--font-xl);
  }
  
  .navigation {
    padding: var(--spacing-xs) 0;
  }
  
  .navigation__content {
    max-width: 100%;
    padding: 0 var(--spacing-sm);
  }
  
  .navigation__item {
    min-height: 50px;
    padding: var(--spacing-xs);
  }
  
  .navigation__icon {
    font-size: var(--font-lg);
    margin-bottom: 2px;
  }
  
  .navigation__label {
    font-size: 9px;
  }
  
  .header {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .header__title {
    font-size: var(--font-base);
  }
  
  .modal {
    margin: var(--spacing-sm);
    max-width: none;
  }
  
  .modal__header,
  .modal__body,
  .modal__footer {
    padding: var(--spacing-md);
  }
  
  .modal__footer {
    flex-direction: column;
  }
  
  .modal__footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .app__blocked {
    padding: var(--spacing-md);
  }
}
/* ========================================
   ПРОСТАЯ ЕДИНАЯ СИСТЕМА СТИЛЕЙ
   ======================================== */

/* ===== НАВИГАЦИЯ С ЭФФЕКТОМ СТЕКЛА ===== */

.navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

.navigation__content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px;
  max-width: 100%;
  margin: 0 auto;
}

.navigation__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease-out;
  border-radius: 16px;
  min-width: 60px;
  position: relative;
  overflow: hidden;
}

.navigation__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  opacity: 0;
  transition: all 0.2s ease-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: scale(0.95);
}

.navigation__item:hover::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.12);
}

.navigation__item:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navigation__item--active {
  background: rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 
    0 6px 24px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px) scale(1.02);
}

.navigation__item--active::before {
  opacity: 1;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2) 0%, 
    rgba(147, 51, 234, 0.15) 100%);
  transform: scale(1);
}

.navigation__icon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: all 0.2s ease-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 1;
}

.navigation__item:hover .navigation__icon {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.navigation__item--active .navigation__icon {
  transform: scale(1.08);
  filter: drop-shadow(0 3px 8px rgba(59, 130, 246, 0.3));
}

.navigation__label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease-out;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.navigation__item:hover .navigation__label {
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  transform: translateY(-0.5px);
}

.navigation__item--active .navigation__label {
  color: #3b82f6;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
  transform: translateY(-0.5px);
}

/* ===== ТЕМНАЯ ТЕМА ===== */

@media (prefers-color-scheme: dark) {
  .navigation {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  }

  .navigation__item::before {
    background: rgba(255, 255, 255, 0.05);
  }

  .navigation__item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .navigation__item--active {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 
      0 8px 32px rgba(59, 130, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navigation__item--active::before {
    background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.4) 0%, 
      rgba(147, 51, 234, 0.3) 100%);
  }

  .navigation__label {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }

  .navigation__item:hover .navigation__label {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .navigation__item--active .navigation__label {
    color: #60a5fa;
    text-shadow: 0 1px 3px rgba(59, 130, 246, 0.5);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Убираем синее свечение для ПК */
@media (min-width: 1024px) {
  .navigation__item--active {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .navigation__item--active::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
  }

  .navigation__item--active .navigation__label {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  }

  .navigation__item--active .glass-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.1);
  }

  /* Убираем пульсацию для ПК */
  .navigation__item--active {
    animation: none;
  }
}

/* Темная тема для ПК */
@media (min-width: 1024px) and (prefers-color-scheme: dark) {
  .navigation__item--active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navigation__item--active .navigation__label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .navigation__item--active .glass-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  }
}

@media (max-width: 480px) {
  .navigation__content {
    padding: 10px 4px;
  }

  .navigation__item {
    padding: 6px 8px;
    min-width: 50px;
  }

  .navigation__icon {
    font-size: 20px;
  }

  .navigation__label {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .navigation__content {
    padding: 8px 2px;
  }

  .navigation__item {
    padding: 4px 6px;
    min-width: 45px;
  }

  .navigation__icon {
    font-size: 18px;
  }

  .navigation__label {
    font-size: 9px;
  }
}

/* ===== АНИМАЦИИ ===== */

@keyframes glassShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.navigation__item--active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 200% 100%;
  animation: glassShimmer 2s infinite;
  border-radius: 16px;
  pointer-events: none;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */

.navigation__item:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.navigation__item:active .navigation__icon {
  transform: scale(1.05);
}

/* Убираем все анимации */
.navigation__item--active {
  animation: none;
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ДОСТУПНОСТИ ===== */

.navigation__item:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.navigation__item:focus:not(:focus-visible) {
  outline: none;
}

/* Улучшенная читаемость для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
  .navigation__item,
  .navigation__icon,
  .navigation__label,
  .navigation__item::before,
  .navigation__item::after {
    transition: none;
    animation: none;
  }
  
  .navigation__item--active {
    animation: none;
  }
}

/* ===== УЛУЧШЕННЫЕ UX/UI ЭФФЕКТЫ ===== */

/* Плавный эффект перехода между состояниями */
.navigation__item {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект "мягкого нажатия" */
.navigation__item:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease-out;
}

/* Эффект "волны" при клике */
.navigation__item {
  position: relative;
  overflow: hidden;
}

.navigation__item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease-out, height 0.3s ease-out;
  pointer-events: none;
  z-index: 0;
}

.navigation__item:active::after {
  width: 100px;
  height: 100px;
}

/* Эффект "подсветки" при наведении */
.navigation__item:hover {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Эффект "фокуса" для активного элемента */
.navigation__item--active {
  background: rgba(59, 130, 246, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Эффект "глубины" для иконок */
.glass-icon {
  transition: all 0.2s ease-out;
}

.navigation__item:hover .glass-icon {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.navigation__item--active .glass-icon {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 3px 12px rgba(59, 130, 246, 0.2));
}

/* Эффект "подъема" для текста */
.navigation__label {
  transition: all 0.2s ease-out;
}

.navigation__item:hover .navigation__label {
  transform: translateY(-1px);
  color: rgba(0, 0, 0, 0.8);
}

.navigation__item--active .navigation__label {
  transform: translateY(-1px);
  color: #3b82f6;
  font-weight: 600;
}

/* Эффект "свечения" для активной иконки */
.navigation__item--active .glass-icon::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(147, 51, 234, 0.08) 50%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Эффект "границы" для активного элемента */
.navigation__item--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(147, 51, 234, 0.05) 100%
  );
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
}

/* Эффект "размытия" для фона */
.navigation__item--active {
  position: relative;
}

.navigation__item--active::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  border-radius: 24px;
  pointer-events: none;
  z-index: -2;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
  .navigation__item:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .navigation__item--active {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 
      0 4px 16px rgba(59, 130, 246, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .navigation__item:hover .navigation__label {
    color: rgba(255, 255, 255, 0.9);
  }

  .navigation__item--active .navigation__label {
    color: #60a5fa;
  }

  .navigation__item:hover .glass-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }

  .navigation__item--active .glass-icon {
    filter: drop-shadow(0 3px 12px rgba(96, 165, 250, 0.3));
  }
}

/* ПК версия - убираем яркие эффекты */
@media (min-width: 1024px) {
  .navigation__item--active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navigation__item--active .navigation__label {
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  }

  .navigation__item--active .glass-icon {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
  }

  .navigation__item--active .glass-icon::before {
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%
    );
  }

  .navigation__item--active::before {
    background: rgba(255, 255, 255, 0.05);
  }

  .navigation__item--active::after {
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 70%
    );
  }
}

/* Темная тема для ПК */
@media (min-width: 1024px) and (prefers-color-scheme: dark) {
  .navigation__item--active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .navigation__item--active .navigation__label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }

  .navigation__item--active .glass-icon {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  }
}

/* Адаптивность */
@media (max-width: 480px) {
  .navigation__item:hover {
    transform: translateY(-0.5px) scale(1.01);
  }

  .navigation__item--active {
    transform: translateY(-0.5px) scale(1.02);
  }

  .navigation__item:hover .glass-icon {
    transform: translateY(-0.5px) scale(1.03);
  }

  .navigation__item--active .glass-icon {
    transform: translateY(-0.5px) scale(1.05);
  }
}

/* Отключение анимаций для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
  .navigation__item,
  .navigation__item::before,
  .navigation__item::after,
  .glass-icon,
  .navigation__label {
    transition: none !important;
    animation: none !important;
  }

  .navigation__item:hover,
  .navigation__item--active {
    transform: none !important;
  }
}
/* Стилизованные кнопки заданий */
.task-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  overflow: hidden;
  min-width: 60px;
  height: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.task-button:hover::before {
  left: 100%;
}

.task-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.task-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для разных типов заданий */
.task-button--primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.task-button--primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.task-button--success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.task-button--success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.task-button--warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.task-button--warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.task-button--danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.task-button--danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.task-button--purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.task-button--purple:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.task-button--pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
}

.task-button--pink:hover {
  background: linear-gradient(135deg, #db2777, #be185d);
}

/* Состояние загрузки */
.task-button--loading {
  pointer-events: none;
  opacity: 0.7;
}

.task-button--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Состояние завершения */
.task-button--completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Иконки в кнопках */
.task-button__icon {
  margin-right: 6px;
  font-size: 14px;
}

.task-button__text {
  font-weight: 700;
  letter-spacing: 0.025em;
}

/* Адаптивность */
@media (max-width: 480px) {
  .task-button {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 50px;
    height: 28px;
  }
  
  .task-button__icon {
    margin-right: 4px;
    font-size: 12px;
  }
}

/* Стилизованные кнопки табов */
.tab-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  overflow: hidden;
  flex: 0 1 auto;
  padding: 8px 12px;
  height: 30px;
  min-width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tab-button:hover::before {
  left: 100%;
}

.tab-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для активного таба */
.tab-button--active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.tab-button--active:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Стили для неактивного таба */
.tab-button--inactive {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #475569;
  border: 1px solid #e2e8f0;
}

.tab-button--inactive:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #334155;
  border-color: #cbd5e1;
}

/* Контейнер для табов */
.tab-container {
  display: flex;
  gap: 3px;
  padding: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

/* Адаптивность для табов */
@media (max-width: 480px) {
  .tab-button {
    padding: 6px 10px;
    font-size: 12px;
    height: 30px;
    min-width: fit-content;
  }
  
  .tab-container {
    gap: 3px;
    padding: 6px;
  }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
  .task-button {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .task-button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  
  .tab-button--inactive {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #cbd5e1;
    border-color: #334155;
  }
  
  .tab-button--inactive:hover {
    background: linear-gradient(135deg, #334155, #475569);
    color: #e2e8f0;
    border-color: #475569;
  }
  
  .tab-container {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
  }
}
.vk-contest-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.vk-contest-modal-body {
  padding: 20px;
}

.vk-contest-post-section {
  margin-bottom: 24px;
}

.vk-contest-post-section h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #333;
}

.vk-post-embed {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.vk-post-link {
  padding: 12px;
  text-align: center;
  background: white;
  border-top: 1px solid #e9ecef;
}

.vk-link-button {
  display: inline-block;
  padding: 8px 16px;
  background: #0077ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.vk-link-button:hover {
  background: #0056b3;
}

.vk-contest-conditions-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.vk-contest-conditions-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

.condition-icon {
  font-size: 18px;
}

.vk-contest-prize-section {
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
}

.vk-contest-prize-section h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: white;
}

.prize-description {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.vk-contest-participate-section {
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
}

.vk-contest-participate-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #333;
}

.participate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.participate-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participate-form label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.participate-form input {
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
}

.participate-form input:focus {
  outline: none;
  border-color: #667eea;
}

.participate-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.participate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.vk-contest-winners-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #fff3cd;
  border-radius: 8px;
}

.vk-contest-winners-section h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #856404;
}

.winners-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winner-item {
  padding: 12px;
  background: white;
  border-radius: 6px;
}

.winner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.winner-name {
  font-weight: 600;
  color: #333;
}

.winner-prize {
  font-size: 14px;
  color: #666;
}

.vk-contest-stats-section {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.weekly-reward-banner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0 var(--spacing-md) var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #f8f9ff 0%, #f1f5ff 35%, #fdf2ff 100%);
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.12);
}

.weekly-reward-banner__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.weekly-reward-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

/* Стили для контента подсказки */
.weekly-reward-banner__info-content {
  animation: slideDown 0.3s ease-out;
  padding-top: var(--spacing-xs);
  width: 100%;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weekly-reward-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.12);
  color: #3f51b5;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.weekly-reward-banner__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.weekly-reward-banner__subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.weekly-reward-banner__winners {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.weekly-reward-banner__winners-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
}

.weekly-reward-banner__winners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weekly-reward-banner__winner {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #1f2937;
  font-size: 13px;
}

.weekly-reward-banner__winner-rank {
  font-weight: 700;
  color: #6b7280;
}

.weekly-reward-banner__winner-name {
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-reward-banner__winner-points {
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
}

@media (max-width: 768px) {
  .weekly-reward-banner {
    margin: 0 var(--spacing-sm) var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .weekly-reward-banner__info {
    gap: var(--spacing-xs);
  }

  .weekly-reward-banner__header {
    width: 100%;
  }

  .weekly-reward-banner__badge {
    font-size: 11px;
  }
}

/* Универсальные стили для компонента HelpHint */

/* Базовые стили кнопки */
.help-hint__button {
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #3f51b5;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.help-hint__button:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}

.help-hint__button:active {
  transform: scale(0.95);
}

.help-hint__button:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

/* Варианты стилей кнопки */
.help-hint__button--minimal {
  background: transparent;
  border: none;
  color: #6b7280;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: normal;
}

.help-hint__button--minimal:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}

.help-hint__button--filled {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.help-hint__button--filled:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Стили для контента подсказки */
.help-hint__content {
  animation: slideDown 0.3s ease-out;
  padding-top: var(--spacing-xs, 8px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .help-hint__button {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}


/* Компонент для отображения подарка с прозрачным контуром */

.gift-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.gift-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gift-emoji-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  overflow: hidden;
}

.gift-emoji {
  font-size: 1.5em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 1;
  position: relative;
}

.gift-price {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 20px;
  text-align: center;
}

/* Варианты размеров */
.gift-icon.small {
  width: 40px;
  height: 40px;
}

.gift-icon.small .gift-emoji {
  font-size: 1.2em;
}

.gift-icon.small .gift-price {
  font-size: 0.6em;
  bottom: -6px;
  right: -6px;
  padding: 1px 4px;
}

.gift-icon.large {
  width: 80px;
  height: 80px;
}

.gift-icon.large .gift-emoji {
  font-size: 2em;
}

.gift-icon.large .gift-price {
  font-size: 0.8em;
  bottom: -10px;
  right: -10px;
  padding: 3px 8px;
}

/* Анимация свечения */
.gift-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 215, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.gift-icon:hover::before {
  opacity: 1;
  animation: giftGlow 2s ease-in-out infinite alternate;
}

@keyframes giftGlow {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* Для рулетки - прозрачный контур */
.gift-icon.roulette-gift {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.gift-icon.roulette-gift .gift-emoji-container {
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gift-icon.roulette-gift .gift-emoji {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  font-size: 1.8em; /* Увеличиваем emoji для рулетки */
}

/* Скрываем цену для рулетки */
.gift-icon.roulette-gift .gift-price {
  display: none;
}

/* Компактный стиль для рулетки */
.gift-icon.roulette-gift.compact {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-icon.roulette-gift.compact .gift-emoji-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.gift-icon.roulette-gift.compact .gift-emoji {
  font-size: 1em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  line-height: 1;
  text-align: center;
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AnimatedGift.css - Стили для анимированных подарков с масками */

.animated-gift {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Загрузка */
.animated-gift.loading {
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner {
  width: 50%;
  height: 50%;
  border: 2px solid #ddd;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Fallback (только эмодзи) */
.animated-gift.fallback,
.animated-gift.emoji-only {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 2px solid #ffb347;
  box-shadow: 0 2px 8px rgba(255, 179, 71, 0.3);
  font-size: 0.7em;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* С изображением */
.animated-gift.with-image {
  background: transparent;
  border: none;
  box-shadow: 0 0 0 transparent;
}

.gift-image {
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
  /* Убираем дополнительную анимацию для GIF */
  animation: none;
  /* Простые эффекты без маски */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Убираем маску - она мешает отображению */

/* Анимации */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes giftFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: brightness(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  }
  25% {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  }
  50% {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.2) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
  }
  75% {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  }
}

/* Эффекты при наведении */
.animated-gift:hover .gift-image {
  transform: scale(1.1);
  filter: brightness(1.2) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  animation-duration: calc(3s / var(--animation-speed, 1));
}

.animated-gift:hover .circular-mask {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.9) 80%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Эффекты для уникальных подарков */
.animated-gift.unique-gift {
  border: 2px solid #ff6b6b;
  box-shadow: 
    0 0 20px rgba(255, 107, 107, 0.5),
    inset 0 0 20px rgba(255, 107, 107, 0.1);
}

.animated-gift.unique-gift .gift-image {
  animation: uniqueGiftGlow 2s ease-in-out infinite;
}

@keyframes uniqueGiftGlow {
  0%, 100% {
    filter: 
      drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2))
      drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
  }
  50% {
    filter: 
      drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3))
      drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .animated-gift {
    min-width: 32px;
    min-height: 32px;
  }
  
  .gift-image {
    animation-duration: 4s; /* Медленнее на мобильных */
  }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
  .animated-gift.fallback,
  .animated-gift.emoji-only {
    background: linear-gradient(135deg, #2d2d2d, #404040);
    border-color: #666;
    color: #fff;
  }
  
  .loading-spinner {
    border-color: #666;
    border-top-color: #4dabf7;
  }
}

/* Специальные эффекты для рулетки */
.animated-gift.in-roulette {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-gift.in-roulette.winning {
  animation: winningPulse 1s ease-in-out infinite;
  transform: scale(1.2);
}

@keyframes winningPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
}

.double-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.double-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
  position: relative;
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.double-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.double-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.double-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.double-modal-header h2 {
  font-size: 28px;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.double-modal-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.double-modal-content {
  margin-bottom: 25px;
}

.double-win-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.double-current-win,
.double-potential-win {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.double-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.double-value {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.double-value.highlight {
  color: #FFD700;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.double-arrow {
  font-size: 30px;
  margin: 0 10px;
  opacity: 0.8;
}

.double-chances {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.double-chance-item {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.double-chance-item.win {
  background: rgba(76, 175, 80, 0.3);
  border: 2px solid rgba(76, 175, 80, 0.5);
}

.double-chance-item.lose {
  background: rgba(244, 67, 54, 0.3);
  border: 2px solid rgba(244, 67, 54, 0.5);
}

.chance-icon {
  font-size: 30px;
}

.chance-info {
  flex: 1;
}

.chance-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.chance-value {
  font-size: 22px;
  font-weight: bold;
}

.double-progress-bar {
  display: flex;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.double-progress-win,
.double-progress-lose {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.5s;
}

.double-progress-win {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.double-progress-lose {
  background: linear-gradient(135deg, #F44336, #EF5350);
}

.double-risk-badge {
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 15px;
  border: 2px solid;
}

.double-risk-badge.low {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4CAF50;
}

.double-risk-badge.medium {
  background: rgba(255, 152, 0, 0.2);
  border-color: #FF9800;
}

.double-risk-badge.high {
  background: rgba(244, 67, 54, 0.2);
  border-color: #F44336;
}

.double-risk-badge.extreme {
  background: rgba(211, 47, 47, 0.2);
  border-color: #D32F2F;
  animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.8);
  }
}

.risk-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.risk-advice {
  font-size: 14px;
  opacity: 0.9;
}

.double-ev {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
}

.ev-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.ev-value {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.ev-value.positive {
  color: #4CAF50;
}

.ev-value.negative {
  color: #F44336;
}

.ev-recommendation {
  font-size: 11px;
  opacity: 0.8;
}

.double-modal-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.double-btn {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.double-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.double-btn-take {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: #fff;
}

.double-btn-take:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.double-btn-double {
  background: linear-gradient(135deg, #FF6B6B, #E63946);
  color: #fff;
}

.double-btn-double:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) translateY(-2px); }
  25% { transform: translateX(-5px) translateY(-2px); }
  75% { transform: translateX(5px) translateY(-2px); }
}

.double-modal-warning {
  text-align: center;
  font-size: 13px;
  padding: 12px;
  background: rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 152, 0, 0.5);
}

.double-modal-loading {
  text-align: center;
  padding: 40px 20px;
}

.double-modal-loading .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@media (max-width: 500px) {
  .double-modal {
    padding: 20px;
  }

  .double-win-display {
    flex-direction: column;
    gap: 10px;
  }

  .double-arrow {
    transform: rotate(90deg);
  }

  .double-modal-actions {
    flex-direction: column;
  }

  .double-chances {
    flex-direction: column;
  }
}


/* Убираем скролл для страницы рулетки */
body.roulette-page-body {
  overflow: hidden;
  height: 100vh;
}

html.roulette-page-html {
  overflow: hidden;
  height: 100vh;
}

.roulette-page {
  height: 100vh;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Tailwind-подобные утилиты для FortuneWheel */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-z-10 { z-index: -10; }
.z-20 { z-index: 20; }
.left-1\/2 { left: 50%; }
.top-\[-18px\] { top: -18px; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.select-none { user-select: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.blur-3xl { filter: blur(64px); }
.rounded-full { border-radius: 9999px; }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.drop-shadow-xl { filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08)); }

/* Верхняя панель */
.roulette-top-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-label {
  display: none;
}

.top-bar-value {
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.top-bar-value.stars {
  color: #FFD700;
}

.top-bar-gifts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gifts-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.prize-gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.roulette-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Контейнер кнопки вращения */
.roulette-spin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0 20px 0;
  position: relative;
  z-index: 100;
}

/* Основная кнопка вращения */
.roulette-spin-button {
  position: relative;
  padding: 20px 40px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff9ff3 100%);
  box-shadow: 
    0 8px 25px rgba(255, 107, 107, 0.4),
    0 0 0 0 rgba(255, 107, 107, 0.7);
  overflow: hidden;
  min-width: 280px;
  z-index: 10;
}

/* Эффект свечения */
.spin-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3, #06b6d4);
  border-radius: 27px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

/* Содержимое кнопки */
.spin-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 4;
}

.spin-icon, .spinner-icon {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

.spinner-icon {
  animation: spin 1s linear infinite;
}

/* Падающие подарки внутри кнопки */
.falling-gifts {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 25px;
  pointer-events: none;
  z-index: 1;
}

.falling-gift {
  position: absolute;
  font-size: 14px;
  animation: fallDown 4s linear infinite;
  opacity: 0.8;
}

.gift-1 {
  left: 15%;
  animation-delay: 0s;
}

.gift-2 {
  left: 30%;
  animation-delay: 0.7s;
}

.gift-3 {
  left: 50%;
  animation-delay: 1.4s;
}

.gift-4 {
  left: 70%;
  animation-delay: 2.1s;
}

.gift-5 {
  left: 85%;
  animation-delay: 2.8s;
}

.gift-6 {
  left: 45%;
  animation-delay: 3.5s;
}

/* Анимированные частицы */
.particle {
  position: absolute;
  font-size: 16px;
  pointer-events: none;
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}

.particle-1 {
  top: -10px;
  left: 20px;
  animation-delay: 0s;
}

.particle-2 {
  top: -15px;
  right: 30px;
  animation-delay: 1s;
}

.particle-3 {
  bottom: -10px;
  left: 50%;
  animation-delay: 2s;
}

/* Состояние при наведении */
.roulette-spin-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 35px rgba(255, 107, 107, 0.6),
    0 0 0 0 rgba(255, 107, 107, 0.8);
}

.roulette-spin-button:hover:not(:disabled) .spin-glow {
  opacity: 1;
}

/* Состояние вращения */
.roulette-spin-button.spinning {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: spin-button 0.5s ease-in-out infinite alternate;
}

.roulette-spin-button.spinning .spin-glow {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
  opacity: 1;
}

/* Отключенное состояние */
.roulette-spin-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.roulette-spin-button.disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Информация о стоимости */
.spin-cost-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spin-cost-info strong {
  color: #FFD700;
  font-weight: bold;
}

/* Анимации */
@keyframes glow-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes spin-button {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

@keyframes fallDown {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Мобильные стили для лучшей видимости */
@media (max-width: 768px) {
  .roulette-spin-container {
    margin: 5px 0 15px 0;
    position: sticky;
    top: 10px;
  }
  
  .roulette-spin-button {
    padding: 18px 35px;
    font-size: 18px;
    min-width: 260px;
    box-shadow: 
      0 10px 30px rgba(255, 107, 107, 0.5),
      0 0 0 0 rgba(255, 107, 107, 0.8);
  }
  
  .falling-gift {
    font-size: 12px;
  }
  
  .spin-cost-info {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.roulette-prize-display {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  animation: prizeAppear 0.5s ease-out;
}

@keyframes prizeAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.roulette-prize-display h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
}

.prize-name {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.prize-value {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin: 10px 0;
}



/* AdminDashboard.css - Современная админ панель */

:root {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
}

.dark {
  /* Dark theme colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

.admin-dashboard {
  min-height: 100vh;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Header */
.admin-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.sidebar-toggle:hover {
  background-color: var(--bg-tertiary);
}

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  background: var(--accent-red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Body Layout */
.admin-body {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.admin-sidebar {
  width: 280px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow-y: auto;
}

.admin-sidebar.collapsed {
  width: 80px;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-item {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--accent-blue);
  color: white;
  border-right: 3px solid var(--accent-blue);
}

.nav-icon {
  font-size: 1.25rem;
  min-width: 1.5rem;
}

.nav-label {
  transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Main Content */
.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Loading & Error States */
.admin-loading, .admin-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard Content */
.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  font-weight: 500;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.stat-trend.positive {
  background-color: #dcfce7;
  color: #166534;
}

.stat-trend.negative {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-container h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.chart-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  height: 150px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-blue), var(--accent-purple));
  border-radius: 0.25rem 0.25rem 0 0;
  min-height: 20px;
  transition: all 0.3s ease;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pie-chart {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pie-slice {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.pie-slice.active {
  background: conic-gradient(var(--accent-green) 0deg 216deg, transparent 216deg);
}

.pie-slice.completed {
  background: conic-gradient(var(--accent-blue) 216deg 360deg, transparent 0deg);
}

/* Content Headers */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.content-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Buttons */
.btn-primary {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.btn-info {
  background: var(--accent-blue);
  color: white;
  border: 1px solid var(--accent-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-info:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-small {
  font-size: 12px !important;
  padding: 4px 8px !important;
  min-width: auto !important;
  opacity: 0.8;
}

.btn-small:hover {
  opacity: 1;
}

/* Переключатель настроек */
.setting-toggle {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--accent-green);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-slider:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .setting-toggle {
    margin-left: 8px;
    margin-top: 8px;
  }
  
  .toggle-text {
    font-size: 12px;
  }
  
  .toggle-switch {
    width: 40px;
    height: 20px;
  }
  
  .toggle-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }
  
  .toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
  }
}

.btn-sm {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  margin: 0 0.25rem;
  transition: all 0.2s;
}

.btn-sm:hover {
  background: var(--bg-secondary);
}

/* Tables */
.table-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--bg-tertiary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.data-table tr:hover {
  background: var(--bg-secondary);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.completed {
  background: #dbeafe;
  color: #1e40af;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-width: 200px;
}

.search-box button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Analytics */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.analytics-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.analytics-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.setting-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.setting-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
  border-bottom: none;
}

.toggle {
  width: 50px;
  height: 24px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle.active {
  background: var(--accent-blue);
}

.toggle-slider {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.toggle.active .toggle-slider {
  transform: translateX(26px);
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-details h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.profile-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-header {
    padding: 1rem;
  }
  
  .header-left h1 {
    font-size: 1.25rem;
  }
  
  .admin-main {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-section {
    grid-template-columns: 1fr;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 80px;
    height: calc(100vh - 80px);
    z-index: 50;
    transition: left 0.3s ease;
  }
  
  .admin-sidebar:not(.collapsed) {
    left: 0;
  }
  
  .admin-sidebar.collapsed {
    left: -280px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .data-table {
    font-size: 0.875rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Стили для управления заданиями */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-danger {
  background-color: var(--accent-red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-sm.btn-danger {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  background-color: var(--accent-red);
}

.btn-sm.btn-danger:hover {
  background-color: #dc2626;
}

/* Стили для чекбоксов */
input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

/* Стили для таблицы с чекбоксами */
.data-table th:first-child,
.data-table td:first-child {
  width: 3rem;
  text-align: center;
}

/* Стили для заголовка дашборда */
.dashboard-header {
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-actions {
    justify-content: center;
  }
  
  .btn-danger {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
.geo-stats, .language-stats {
  padding: 1rem 0;
}

.country-list, .language-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.country-item, .language-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.country-info, .language-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.country-name, .language-name {
  font-weight: 600;
  color: var(--text-primary);
}

.country-count, .language-count {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.country-bar, .language-bar {
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.country-progress, .language-progress {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Анимация для прогресс-баров */
.country-progress, .language-progress {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    width: 0%;
  }
  to {
    width: var(--width);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .country-info, .language-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .country-count, .language-count {
    font-size: 0.75rem;
  }
}

/* Компактные кнопки */
.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.header-actions button {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  min-width: auto;
  white-space: nowrap;
}

.header-actions button:hover {
  transform: translateY(-1px);
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.25rem;
  }
  
  .header-actions button {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
}

/* Статус сводка */
.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
}

/* Секции статуса */
.status-section {
  margin-bottom: 32px;
}

.status-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-blue);
}

.status-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
}

.status-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.status-item:last-child {
  border-bottom: none;
}

.status-item:hover {
  background: var(--bg-secondary);
}

.item-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.item-id {
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.item-title {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 150px;
}

.item-status {
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 500;
}

.item-user {
  color: var(--accent-purple);
  font-size: 0.875rem;
  font-weight: 500;
}

.item-type {
  color: var(--accent-yellow);
  font-size: 0.875rem;
  font-weight: 500;
}

.item-date {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-style: italic;
}

/* Analytics Styles */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--accent-red);
}

.retry-button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background: #2563eb;
}

.metric-details {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.analytics-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

.date-range select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.date-range select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Мобильная адаптация модального окна */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 16px 20px;
  }
  
  .status-summary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .item-title {
    min-width: auto;
  }
}
/* Security Monitor Styles */
.security-monitor {
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  color: #ffffff;
  min-height: 600px;
}

.security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
}

.security-header h2 {
  margin: 0;
  font-size: 28px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.time-selector {
  padding: 8px 12px;
  border: 2px solid #4ecdc4;
  border-radius: 8px;
  background: rgba(78, 205, 196, 0.1);
  color: #ffffff;
  font-size: 14px;
}

.time-selector:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.refresh-btn {
  padding: 8px 16px;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tabs button {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 10px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tabs button.active {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-color: #4ecdc4;
}

.tabs button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4ecdc4;
}

/* Overview Tab */
.overview-tab {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.overall-status {
  display: flex;
  justify-content: center;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  min-width: 400px;
}

.status-icon {
  font-size: 48px;
}

.status-info h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #4ecdc4;
}

.status-info p {
  margin: 0 0 15px 0;
  font-size: 16px;
  opacity: 0.9;
}

.total-events {
  font-size: 18px;
  color: #ff6b6b;
}

.security-checks h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #4ecdc4;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.check-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.check-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.check-icon {
  font-size: 24px;
}

.check-count {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b6b;
}

.check-description {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.check-error {
  margin-top: 10px;
  padding: 8px;
  background: rgba(244, 67, 54, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: #ff6b6b;
}

.recent-logs h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: #4ecdc4;
}

.logs-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-preview {
  display: flex;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 13px;
}

.log-time {
  color: #4ecdc4;
  font-weight: bold;
  min-width: 120px;
}

.log-message {
  opacity: 0.9;
  flex: 1;
}

/* Logs Tab */
.logs-tab {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logs-header h3 {
  margin: 0;
  font-size: 22px;
  color: #4ecdc4;
}

.logs-info {
  color: #ff6b6b;
  font-weight: bold;
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.no-logs {
  text-align: center;
  padding: 40px;
  color: #4ecdc4;
  font-size: 18px;
  opacity: 0.7;
}

.log-entry {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.log-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.log-type-icon {
  font-size: 20px;
}

.log-timestamp {
  color: #4ecdc4;
  font-weight: bold;
  font-size: 14px;
}

.log-severity {
  font-weight: bold;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.log-message {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
  word-break: break-all;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 60px;
  font-size: 18px;
  color: #4ecdc4;
}

.error {
  text-align: center;
  padding: 60px;
  font-size: 18px;
  color: #ff6b6b;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 10px;
  border: 2px solid #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .security-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .controls {
    justify-content: center;
  }
  
  .status-card {
    min-width: auto;
    flex-direction: column;
    text-align: center;
  }
  
  .checks-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .logs-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* Scrollbar Styling */
.logs-list::-webkit-scrollbar {
  width: 8px;
}

.logs-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.logs-list::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 4px;
}

.logs-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}


/*# sourceMappingURL=main.6b695db6.css.map*/