/* --- ОБУЧАЮЩИЕ ЭКРАНЫ (ONBOARDING) --- */
#onboarding-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2c2c2c;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#onboarding-screen.active {
  opacity: 1;
  display: flex;
}

.onboarding-content {
  background: #222;
  border-radius: 16px;
  text-align: center;
  color: white;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

#onboarding-screen.active .onboarding-content {
  transform: scale(1);
}

.onboarding-slide {
  padding: 40px 30px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.onboarding-slide.active {
  display: flex;
}

.onboarding-slide h2 {
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

.onboarding-slide p {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #ccc;
  line-height: 1.6;
  max-width: 400px;
}

.onboarding-slide .slide-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

/* Навигация */
.onboarding-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.onboarding-nav button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-nav button:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.onboarding-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Точки навигации */
.onboarding-dots {
  display: flex;
  gap: 8px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.onboarding-dot.active {
  background: #4a90e2;
}

/* Кнопка "Далее" */
.onboarding-next-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 100px;
}

.onboarding-next-btn:hover {
  background-color: #357ABD;
}

.onboarding-next-btn:active {
  transform: scale(0.98);
}

/* Кнопка "Создать кошелек" */
.onboarding-create-wallet-btn {
  margin-bottom: 30px;
  margin-top: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 180px;
  width: 100%;
  max-width: 300px;
}

.onboarding-create-wallet-btn:hover:not(:disabled) {
  background: #357ABD;
}

.onboarding-create-wallet-btn:active:not(:disabled) {
  background: #2c5aa0;
}


/* ===================================================== */
/* SVG АНИМАЦИЯ ОГНЯ ДЛЯ ЗАГРУЗКИ */
/* ===================================================== */

.fire-loading-container {
  width: 80px;
  height: 120px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fire-loading-container svg {
  width: 100%;
  height: auto;
  position: relative;
}

/* Анимация основного пламени */
.flame-main {
  animation-name: flameWobble;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.flame-main.one {
  animation-duration: 4s;
  animation-delay: 1s;
}

.flame-main.two {
  animation-duration: 3s;
  animation-delay: 2s;
}

.flame-main.three {
  animation-duration: 2.1s;
  animation-delay: 3s;
}

.flame-main.four {
  animation-duration: 3.2s;
  animation-delay: 4s;
}

.flame-main.five {
  animation-duration: 2.5s;
  animation-delay: 5s;
}

/* Анимация искр */
.flame {
  animation-name: flamefly;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
  transform-origin: 50% 50% 0;
}

.flame.one {
  animation-delay: 1s;
  animation-duration: 3s;
}

.flame.two {
  animation-duration: 5s;
  animation-delay: 1s;
}

/* Ключевые кадры анимации */
@keyframes flameWobble {
  50% {
    transform: scale(1,1.2) translate(0, -30px) rotate(-2deg);
  }
}

@keyframes flamefly {
  0%{
    transform: translate(0) rotate(180deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-20px, -100px) rotate(180deg);
    opacity: 0;
  }
}

/* ===================================================== */
/* СТАРЫЕ СТИЛИ СПИННЕРА (ЗАКОММЕНТИРОВАНЫ) */
/* ===================================================== */

/* Спиннер загрузки */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

/* Большой спиннер для анимации загрузки */
.loading-spinner-large {
  width: 40px;
  height: 40px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

.loading-content {
  text-align: center;
  color: white;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-content p {
  margin: 0;
  opacity: 0.9;
  margin-top: 20px;
}

/* Анимации переходов */
.onboarding-slide {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease-in-out;
}

.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.onboarding-slide.prev {
  transform: translateX(-50px);
}

/* Адаптивность */
@media (max-width: 480px) {
  .onboarding-content {
    margin: 20px;
    max-height: 90vh;
  }
  
  .onboarding-slide {
    padding: 30px 20px;
    min-height: 350px;
  }
  
  .onboarding-slide h2 {
    font-size: 24px;
  }
  
  .onboarding-slide p {
    font-size: 16px;
  }
  
  .onboarding-slide .slide-icon {
    font-size: 48px;
  }

  .onboarding-next-btn {
    bottom: 25px;
    right: 20px;
    padding: 5px 24px;
    font-size: 12px;
  }
  
  .onboarding-create-wallet-btn {
    padding: 5px 15px;
    font-size: 14px;
    min-width: 150px;
    max-width: 250px;
  }

  .onboarding-dots {
    gap: 5px;
  }
} 