/* Современный UI для eyelacer - Полная переработка */

/* ===== ПЕРЕМЕННЫЕ И ОСНОВЫ ===== */
:root {
  /* Цветовая схема */
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #f8fafc;
  --accent-color: #06b6d4;
  --accent-secondary: #0891b2;
  --accent-hover: #0891b2;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Текст */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Фоны */
  --background-primary: #ffffff;
  --background-secondary: #f1f5f9;
  --background-tertiary: #f8fafc;
  --background-elevated: #ffffff;
  
  /* Границы */
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Анимации */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Радиусы */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Размеры */
  --container-max-width: 1400px;
  --header-height: 80px;
  --footer-height: 60px;
  --content-min-height: calc(100vh - var(--header-height) - var(--footer-height));
  
  /* ===== ДИНАМИЧЕСКАЯ АДАПТАЦИЯ ПОД ДИАГОНАЛЬ УСТРОЙСТВА ===== */
  
  /* Переменные для адаптации под устройство */
  --device-size-multiplier: 1.0;
  --control-button-size: 48px;
  --font-size-multiplier: 1.0;
  
  /* Оптимизации для касания */
  --touch-target-size: 32px;
  --touch-spacing: 4px;
  
  /* Оптимизации производительности */
  --animation-duration: 0.3s;
  --particle-count: 5;
  
  /* Мобильные исправления */
  --mobile-padding: 0.5rem;
  --mobile-margin: 0.25rem;
  --mobile-button-size: 48px;
}

/* Темная тема */
[data-theme="dark"] {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: #a78bfa;
  --secondary-color: #1e293b;
  --accent-color: #22d3ee;
  --accent-secondary: #06b6d4;
  --accent-hover: #06b6d4;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --background-primary: #0f172a;
  --background-secondary: #1e293b;
  --background-tertiary: #334155;
  --background-elevated: #1e293b;
  
  --border-color: #334155;
  --border-focus: #8b5cf6;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
}

/* ===== СИСТЕМА АУТЕНТИФИКАЦИИ ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--background-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.user-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.logout-btn,
.login-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  background: var(--background-secondary);
  color: var(--error-color);
}

.login-btn:hover {
  background: var(--background-secondary);
  color: var(--primary-color);
}

.logout-btn svg,
.login-btn svg {
  width: 16px;
  height: 16px;
}

/* Стили для аватара гостя */
.guest-avatar {
  background: var(--background-secondary) !important;
  color: var(--text-secondary) !important;
}

/* Анимации для модального окна */


/* Улучшенные стили для форм */
.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-submit:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .user-info {
    padding: 6px 12px;
    gap: 8px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .user-name {
    font-size: 13px;
  }
  
  .user-status {
    font-size: 11px;
  }
  
  .logout-btn,
  .login-btn {
    padding: 4px;
  }
  
  .logout-btn svg,
  .login-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Улучшенная прокрутка для мобильных устройств */
  body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .app-container {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .main-content {
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text-primary);
  background: var(--background-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* ===== КОНТЕЙНЕР ПРИЛОЖЕНИЯ ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===== ФОН И ЧАСТИЦЫ ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite linear;
}

.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.particle:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
  animation-duration: 35s;
}

.particle:nth-child(4) {
  bottom: 20%;
  right: 25%;
  animation-delay: 15s;
  animation-duration: 40s;
}

.particle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 20s;
  animation-duration: 45s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0.3;
  }
}

/* ===== ШАПКА ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .main-header {
  background: rgba(15, 23, 42, 0.95);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  position: relative;
}

.eye-logo {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.eye-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--background-primary);
  border-radius: var(--border-radius-full);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: var(--border-radius-full);
  animation: blink 4s infinite;
}

@keyframes blink {
  0%, 90%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  95% {
    transform: translate(-50%, -50%) scale(0.1);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.control-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--border-radius-full);
  background: var(--background-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 10002;
}

.control-btn:hover {
  background: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.control-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.control-btn:hover svg {
  transform: scale(1.1);
}

/* Иконки темы */
.theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
  position: absolute;
  transition: all var(--transition-normal);
}

.theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Иконки звука */
.sound-toggle-btn .sound-off-icon {
  opacity: 0;
  transform: scale(0.8);
}

.sound-toggle-btn.muted .sound-on-icon {
  opacity: 0;
  transform: scale(0.8);
}

.sound-toggle-btn.muted .sound-off-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* ===== ГЛАВНЫЙ БЛОК ===== */
.main-hero-block,
.massiveBlock {
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  background: var(--background-elevated);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: 4rem;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.main-hero-block::before,
.massiveBlock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.main-hero-block:hover,
.massiveBlock:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== ИНДИКАТОРЫ ДОВЕРИЯ ===== */
.trust-indicators {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.trust-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.trust-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* ===== ОПИСАНИЕ ДОВЕРИЯ ===== */
.trust-description {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

.trust-text-main {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trust-feature {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.start-exercises-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.start-exercises-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.start-exercises-btn::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.6s ease;
}

.start-exercises-btn:hover::before {
  left: 100%;
}

.start-exercises-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.start-exercises-btn:active {
  transform: translateY(-2px);
}

.btn-icon svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-normal);
}

.start-exercises-btn:hover .btn-icon svg {
  transform: translateX(4px);
}

.exercise-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.info-icon {
  font-size: 1.5rem;
}

.info-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== HERO ВИЗУАЛ ===== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-animation-container {
  width: 300px;
  height: 300px;
  position: relative;
}

.animated-eye {
  width: 100%;
  height: 100%;
  position: relative;
  animation: eyeFloat 6s ease-in-out infinite;
}

@keyframes eyeFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.eye-outer {
  width: 200px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}

.eye-inner {
  width: 160px;
  height: 100px;
  background: var(--background-primary);
  border-radius: var(--border-radius-full);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pupil {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  border-radius: var(--border-radius-full);
  position: absolute;
  transition: all 0.3s ease;
  animation: pupilMove 8s ease-in-out infinite;
}

@keyframes pupilMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -20px);
  }
  50% {
    transform: translate(-30px, 20px);
  }
  75% {
    transform: translate(30px, 20px);
  }
}

/* ===== БЛОК УПРАЖНЕНИЙ ===== */
.exercise-block {
  display: none;
  min-height: 700px;
}

.exercise-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.exercise-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.exercise-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  width: 200px;
  height: 8px;
  background: var(--background-secondary);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  transition: width var(--transition-normal);
  width: 0%;
}

.progress-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.exercise-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.exercise-instruction {
  text-align: center;
  max-width: 600px;
}

.instruction-text {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instruction-subtext {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.exercise-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-exercise-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.exercise-eye {
  position: relative;
}

.exercise-eye .eye-outer {
  width: 150px;
  height: 90px;
  animation: exerciseEyeBlink 4s ease-in-out infinite;
}

.exercise-eye .eye-inner {
  width: 120px;
  height: 75px;
}

.exercise-eye .pupil {
  width: 30px;
  height: 30px;
  animation: exercisePupilMove 6s ease-in-out infinite;
}

@keyframes exerciseEyeBlink {
  0%, 90%, 100% {
    transform: translate(-50%, -50%) scaleY(1);
  }
  95% {
    transform: translate(-50%, -50%) scaleY(0.1);
  }
}

@keyframes exercisePupilMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -15px);
  }
  50% {
    transform: translate(-20px, 15px);
  }
  75% {
    transform: translate(20px, 15px);
  }
}

.exercise-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.pause-btn,
.skip-btn {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: var(--border-radius-full);
  background: var(--background-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.pause-btn:hover,
.skip-btn:hover {
  background: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pause-btn svg,
.skip-btn svg {
  width: 24px;
  height: 24px;
}

/* ===== ПОДВАЛ ===== */
.main-footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-info,
.time-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.info-icon {
  font-size: 1.5rem;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.125rem;
}

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

.current-time {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.125rem;
}

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

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification {
  background: var(--background-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-weight: 500;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

/* ===== ЗВУКОВЫЕ ЭФФЕКТЫ ===== */
.sound-effects-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.sound-effect {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: var(--border-radius-full);
  opacity: 0;
  animation: soundPulse 0.5s ease-out;
}

@keyframes soundPulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ===== ТАЙМЕР УПРАЖНЕНИЙ ===== */
.exercise-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 2rem 0;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: 
    0 8px 32px rgba(var(--primary-rgb), 0.3),
    0 4px 16px rgba(var(--primary-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  position: relative;
  overflow: hidden;
  /* Уменьшаем размер для лучшего размещения */
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.exercise-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: timerShimmer 2s infinite;
}

@keyframes timerShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-on-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
}

.timer-icon {
  font-size: 1.5rem;
  animation: timerPulse 1s ease-in-out infinite alternate;
}

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

.timer-text {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ===== ДВИЖУЩИЕСЯ КРУЖКИ/ТОЧКИ ===== */
.exercise-animation-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* Адаптивные стили для таймера */
@media (max-width: 768px) {
  .exercise-timer {
    max-width: 250px;
    padding: 0.75rem 1.5rem;
    margin: 0.75rem 0 1.5rem 0;
  }
  
  .timer-display {
    font-size: 1.75rem;
    gap: 0.5rem;
  }
  
  .timer-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .exercise-timer {
    max-width: 200px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0 1rem 0;
  }
  
  .timer-display {
    font-size: 1.5rem;
    gap: 0.5rem;
  }
  
  .timer-icon {
    font-size: 1rem;
  }
}

.moving-circles {
  position: relative;
  width: 100%;
  height: 100%;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  box-shadow: 
    0 4px 16px rgba(var(--primary-rgb), 0.4),
    0 2px 8px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: circleFloat 6s ease-in-out infinite;
}

.circle-1 {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.circle-2 {
  width: 16px;
  height: 16px;
  top: 60%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 6s;
}

.circle-3 {
  width: 24px;
  height: 24px;
  top: 40%;
  left: 60%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.circle-4 {
  width: 12px;
  height: 12px;
  top: 80%;
  left: 20%;
  animation-delay: 3s;
  animation-duration: 7s;
}

.circle-5 {
  width: 18px;
  height: 18px;
  top: 10%;
  left: 70%;
  animation-delay: 4s;
  animation-duration: 9s;
}

@keyframes circleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-20px, 40px) scale(0.9);
    opacity: 0.8;
  }
  75% {
    transform: translate(40px, 20px) scale(1.2);
    opacity: 0.9;
  }
}

/* ===== ГЛАВНАЯ ИНТЕРАКТИВНАЯ ЦЕЛЬ УПРАЖНЕНИЯ ===== */
.exercise-target-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-target {
  position: relative;
  width: 60px;
  height: 60px;
  pointer-events: auto;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.target-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 
    0 0 20px var(--accent-color),
    0 0 40px rgba(99, 102, 241, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: targetPulse 2s ease-in-out infinite;
}

.target-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  animation: targetGlow 3s ease-in-out infinite;
}

@keyframes targetPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 0 20px var(--accent-color),
      0 0 40px rgba(99, 102, 241, 0.3),
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
      0 0 30px var(--accent-color),
      0 0 60px rgba(99, 102, 241, 0.5),
      inset 0 0 30px rgba(255, 255, 255, 0.3);
  }
}

@keyframes targetGlow {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Анимации движения цели для разных упражнений */
.exercise-target.moving-up-down {
  animation: moveUpDown 4s ease-in-out infinite;
}

.exercise-target.moving-left-right {
  animation: moveLeftRight 4s ease-in-out infinite;
}

.exercise-target.moving-circle {
  animation: moveCircle 6s ease-in-out infinite;
}

.exercise-target.moving-diagonal {
  animation: moveDiagonal 5s ease-in-out infinite;
}

.exercise-target.moving-figure-eight {
  animation: moveFigureEight 8s ease-in-out infinite;
}

/* Новые упражнения с более динамичными движениями */
.exercise-target.moving-zigzag {
  animation: moveZigzag 3s ease-in-out infinite;
}

.exercise-target.moving-spiral {
  animation: moveSpiral 5s ease-in-out infinite;
}

.exercise-target.moving-square {
  animation: moveSquare 4s ease-in-out infinite;
}

.exercise-target.moving-triangle {
  animation: moveTriangle 4.5s ease-in-out infinite;
}

.exercise-target.moving-wave {
  animation: moveWave 3.5s ease-in-out infinite;
}

.exercise-target.moving-star {
  animation: moveStar 6s ease-in-out infinite;
}

.exercise-target.moving-spiral-out {
  animation: moveSpiralOut 5.5s ease-in-out infinite;
}

.exercise-target.moving-cross {
  animation: moveCross 4s ease-in-out infinite;
}

.exercise-target.moving-circular-spiral {
  animation: moveCircularSpiral 7s ease-in-out infinite;
}

@keyframes moveUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(80px);
  }
  50% {
    transform: translateY(120px);
  }
  75% {
    transform: translateY(60px);
  }
}

@keyframes moveLeftRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(150px);
  }
}

@keyframes moveCircle {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(100px) translateY(-100px);
  }
  50% {
    transform: translateX(0) translateY(-200px);
  }
  75% {
    transform: translateX(-100px) translateY(-100px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes moveDiagonal {
  0%, 100% {
    transform: translateX(-100px) translateY(-100px);
  }
  25% {
    transform: translateX(100px) translateY(-100px);
  }
  50% {
    transform: translateX(100px) translateY(100px);
  }
  75% {
    transform: translateX(-100px) translateY(100px);
  }
}

@keyframes moveFigureEight {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(100px) translateY(-50px);
  }
  50% {
    transform: translateX(0) translateY(-100px);
  }
  75% {
    transform: translateX(-100px) translateY(-50px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Новые динамичные анимации */
@keyframes moveZigzag {
  0%, 100% { transform: translateX(0) translateY(0); }
  10% { transform: translateX(80px) translateY(-60px); }
  20% { transform: translateX(160px) translateY(0); }
  30% { transform: translateX(120px) translateY(80px); }
  40% { transform: translateX(40px) translateY(40px); }
  50% { transform: translateX(-40px) translateY(-40px); }
  60% { transform: translateX(-120px) translateY(80px); }
  70% { transform: translateX(-160px) translateY(0); }
  80% { transform: translateX(-80px) translateY(-60px); }
  90% { transform: translateX(0) translateY(0); }
}

@keyframes moveSpiral {
  0% { transform: translateX(0) translateY(0) scale(1); }
  25% { transform: translateX(60px) translateY(-60px) scale(1.2); }
  50% { transform: translateX(0) translateY(-120px) scale(1.4); }
  75% { transform: translateX(-60px) translateY(-60px) scale(1.2); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}

@keyframes moveSquare {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(100px) translateY(0); }
  50% { transform: translateX(100px) translateY(100px); }
  75% { transform: translateX(0) translateY(100px); }
}

@keyframes moveTriangle {
  0%, 100% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(80px) translateY(-80px); }
  66% { transform: translateX(-80px) translateY(-80px); }
}

@keyframes moveWave {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(50px) translateY(-40px); }
  50% { transform: translateX(100px) translateY(0); }
  75% { transform: translateX(50px) translateY(40px); }
}

@keyframes moveStar {
  0%, 100% { transform: translateX(0) translateY(0); }
  20% { transform: translateX(80px) translateY(-80px); }
  40% { transform: translateX(0) translateY(-120px); }
  60% { transform: translateX(-80px) translateY(-80px); }
  80% { transform: translateX(-80px) translateY(80px); }
}

@keyframes moveSpiralOut {
  0% { transform: translateX(0) translateY(0) scale(1); }
  20% { transform: translateX(40px) translateY(-40px) scale(1.1); }
  40% { transform: translateX(80px) translateY(0) scale(1.2); }
  60% { transform: translateX(40px) translateY(40px) scale(1.3); }
  80% { transform: translateX(0) translateY(80px) scale(1.4); }
  100% { transform: translateX(0) translateY(0) scale(1); }
}

@keyframes moveCross {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(100px) translateY(0); }
  50% { transform: translateX(0) translateY(0); }
  75% { transform: translateX(0) translateY(100px); }
}

@keyframes moveCircularSpiral {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  25% { transform: translateX(60px) translateY(-60px) rotate(90deg); }
  50% { transform: translateX(0) translateY(-120px) rotate(180deg); }
  75% { transform: translateX(-60px) translateY(-60px) rotate(270deg); }
  100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

/* Состояния цели */
.exercise-target:hover {
  transform: scale(1.1);
}

.exercise-target.active {
  animation-play-state: running;
}

.exercise-target.paused {
  animation-play-state: paused;
}

/* ===== СКРЫТИЕ ГЛАЗ В УПРАЖНЕНИЯХ ===== */
.eye-exercise-container {
  display: none !important; /* Глаза скрыты для лучшей концентрации */
}

.exercise-eye {
  position: relative;
  width: 120px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exercise-eye.left-eye {
  transform: translateX(-20px);
}

.exercise-eye.right-eye {
  transform: translateX(20px);
}

.exercise-eye .eye-outer {
  width: 100px;
  height: 60px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 50px;
  border: 3px solid var(--border-color);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.exercise-eye .eye-inner {
  width: 80px;
  height: 50px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  border-radius: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.exercise-eye .pupil {
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.exercise-eye .pupil::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
}

/* ===== КНОПКА НАСТРОЕК ===== */
.settings-btn {
  position: relative;
  overflow: hidden;
}

.settings-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.settings-btn:hover::before {
  width: 100px;
  height: 100px;
}

.settings-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: all 0.3s ease;
}

.settings-btn:hover .settings-icon {
  transform: rotate(90deg);
  color: var(--primary);
}

/* ===== КНОПКА СТАТИСТИКИ ===== */
.stats-toggle-btn {
  position: relative;
  overflow: hidden;
}

.stats-toggle-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-normal);
  opacity: 0;
}

.stats-toggle-btn:hover::before {
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.stats-toggle-btn:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

.stats-toggle-btn svg {
  transition: transform var(--transition-normal);
}

.stats-toggle-btn:hover svg {
  transform: scale(1.1);
}

/* ===== ПЛАВАЮЩАЯ ПАНЕЛЬ СТАТИСТИКИ ===== */
.floating-stats-panel {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background: var(--background-elevated);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s ease-out;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.stats-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  color: #333333;
}

.stats-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
}

.stats-close:hover {
  color: var(--text-primary);
  background: var(--background-secondary);
  transform: scale(1.1);
}

.stats-content {
  padding: 1.5rem;
}

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

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

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

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  color: #007bff;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  background: linear-gradient(135deg, #007bff, #0056b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInRight {
  from {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}

/* ===== УЛУЧШЕННЫЕ РАЗМЕРЫ ИНТЕРФЕЙСА ===== */
.app-container {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.main-header {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(var(--background-rgb), 0.95);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(var(--border-rgb), 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.05);
}

.hero-section {
  padding: 4rem 3rem;
  margin: 2rem 0;
  background: rgba(var(--background-rgb), 0.98);
  border-radius: var(--border-radius-2xl);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(var(--border-rgb), 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.exercise-block {
  padding: 3rem;
  margin: 2rem 0;
  background: rgba(var(--background-rgb), 0.98);
  border-radius: var(--border-radius-2xl);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(var(--border-rgb), 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.6);
  }
}

.hero-title {
  animation: breathe 4s ease-in-out infinite;
}

.start-exercises-btn {
  animation: glow 2s ease-in-out infinite;
}



/* ===== УЛУЧШЕННАЯ КОНТРАСТНОСТЬ ДЛЯ УПРАЖНЕНИЙ ===== */
.massiveBlock {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid #e0e6ef !important;
  box-shadow: 
    0 8px 40px 0 rgba(80, 80, 120, 0.15),
    0 1.5px 8px 0 rgba(80, 80, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .massiveBlock {
  background: rgba(24, 28, 36, 0.98) !important;
  border: 2px solid #23293a !important;
  box-shadow: 
    0 8px 40px 0 rgba(0, 0, 0, 0.3),
    0 1.5px 8px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Улучшенная видимость текста в упражнениях */
.instruction-text {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .instruction-text {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instruction-subtext {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

/* ===== ФИНАЛЬНЫЕ УЛУЧШЕНИЯ ===== */
/* Плавные переходы между состояниями */
* {
  transition: 
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Улучшенная фокусировка */
button:focus,
.control-btn:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}



/* Улучшенная доступность */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Высокий контраст для слабовидящих */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --background-primary: #ffffff;
    --border-color: #000000;
  }
  
  [data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --background-primary: #000000;
    --border-color: #ffffff;
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .main-hero-block,
  .massiveBlock {
    padding: 3rem;
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-section {
    justify-content: center;
  }
  
  .header-controls {
    justify-content: center;
  }
  
  .control-group {
    gap: 0.5rem;
  }
  
  .control-btn {
    min-width: 48px;
    height: 48px;
    padding: 12px;
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .hero-description {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .start-exercises-btn {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .exercise-info {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .info-item {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .main-hero-block,
  .massiveBlock {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .exercise-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .exercise-title {
    font-size: 2rem;
  }
  
  .instruction-text {
    font-size: 2rem;
    text-align: center;
  }
  
  .instruction-subtext {
    font-size: 1.25rem;
    text-align: center;
  }
  
  .eye-exercise-container {
    gap: 2rem;
    justify-content: center;
  }
  
  .exercise-eye .eye-outer {
    width: 120px;
    height: 72px;
  }
  
  .exercise-eye .eye-inner {
    width: 96px;
    height: 60px;
  }
  
  .exercise-eye .pupil {
    width: 24px;
    height: 24px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .trust-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .trust-description {
    padding: 1rem;
  }
  
  .trust-text-main {
    text-align: center;
  }
  
  .trust-features {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.5rem;
  }
  
  .control-btn {
    min-width: 44px;
    height: 44px;
    padding: 10px;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .start-exercises-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
  }
  
  .main-hero-block,
  .massiveBlock {
    padding: 1rem;
    margin: 0.25rem;
  }
  
  .instruction-text {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  .instruction-subtext {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .eye-exercise-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .exercise-eye.left-eye,
  .exercise-eye.right-eye {
    transform: none;
  }
  
  .exercise-eye .eye-outer {
    width: 100px;
    height: 60px;
  }
  
  .exercise-eye .eye-inner {
    width: 80px;
    height: 50px;
  }
  
  .exercise-eye .pupil {
    width: 20px;
    height: 20px;
  }
  
  .trust-indicators {
    gap: 0.75rem;
  }
  
  .trust-item {
    max-width: 240px;
    padding: 0.75rem;
  }
  
  .info-item {
    max-width: 220px;
    padding: 0.75rem;
  }
  
  .footer-container {
    padding: 0.75rem;
  }
  
  .auth-content {
    width: 95%;
    max-width: 320px;
    padding: 1.5rem;
  }
  

}

/* ===== МОДАЛЬНОЕ ОКНО НАСТРОЕК ===== */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-modal.show {
  opacity: 1;
}

.settings-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.settings-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--background-elevated);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.settings-modal.show .settings-content {
  transform: translate(-50%, -50%) scale(1);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.settings-close:hover {
  background: var(--background-secondary);
  color: var(--text-primary);
}

.settings-body {
  margin-bottom: 2rem;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--background-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.setting-item label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.setting-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.volume-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

.volume-value {
  text-align: center;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.875rem;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.settings-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.settings-save,
.settings-reset {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-save {
  background: var(--primary-color);
  color: white;
}

.settings-save:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.settings-reset {
  background: var(--background-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.settings-reset:hover {
  background: var(--background-tertiary);
  transform: translateY(-1px);
}

/* Адаптивность для модального окна настроек */
@media (max-width: 768px) {
  .settings-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .settings-header h3 {
    font-size: 1.25rem;
  }
  
  .setting-item {
    padding: 0.75rem;
  }
  
  .settings-footer {
    flex-direction: column;
  }
  
  .settings-save,
  .settings-reset {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .settings-content {
    width: 98%;
    padding: 1rem;
  }
  
  .settings-header {
    margin-bottom: 1.5rem;
  }
  
  .setting-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }
}
