/* Сетка для жанров */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  margin-bottom: 25px;
}

/* Карточка жанра */
.genre-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mi{
	padding:10px;
	
}
.genre-emoji {
  font-size: 2rem;
}

.genre-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e1e9;
}

/* Эффект при наведении */
.genre-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(189, 147, 249, 0.4);
}

/* Активное (выбранное) состояние */
.genre-card.active {
  background: rgba(255, 121, 198, 0.1);
  border: 2px solid #ff79c6;
  box-shadow: 0 0 20px rgba(255, 121, 198, 0.2);
}

.genre-card.active .genre-name {
  color: #fff;
}

/* Адаптивность для совсем маленьких экранов */
@media (max-width: 400px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }
}


.wizard-section {
  background: linear-gradient(135deg, #1a103c 0%, #0f0c1b 100%);
  padding: clamp(30px, 5vh, 60px) clamp(15px, 3vw, 20px);
  font-family: 'Inter', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
}

.wizard-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: 550px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

/* Полоса прогресса */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 25%; /* Начальный шаг */
  background: linear-gradient(90deg, #ff79c6, #bd93f9);
  transition: width 0.4s ease;
}

/* Управление шагами */
.wizard-step {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
  will-change: transform;
}

.wizard-step.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

/* Элементы шагов */
.step-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.wizard-step h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-sub {
  font-size: 0.9rem;
  color: #a29bfe;
  margin-bottom: 20px;
}

/* Инпуты */
.input-group {
  width: 100%;
  margin-bottom: 25px;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.input-group textarea {
  height: 100px;
  resize: none;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: #ff79c6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 121, 198, 0.2);
}

/* Кнопки */
.btn-group {
  display: flex;
  gap: 15px;
  width: 100%;
}

.btn-wizard {

  width: 100%;
  padding: 15px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.next-btn, .pay-btn {
  background: linear-gradient(90deg, #ff79c6, #bd93f9);
  color: #0f0c1b;
}

.next-btn:hover, .pay-btn:hover {
  box-shadow: 0 5px 20px rgba(255, 121, 198, 0.4);
  transform: translateY(-2px);
}

.prev-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Драг-энд-дроп для фото */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 25px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 25px;
  box-sizing: border-box;
}

.file-input {
  position: absolute;
  left: 0; top: 0; height: 100%; width: 100%;
  opacity: 0; cursor: pointer;
}

.fake-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.file-msg { font-size: 0.85rem; color: #a29bfe; }

/* Красивый ИИ лоадер */
.ai-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 121, 198, 0.2);
  border-radius: 50%;
  border-top-color: #ff79c6;
  border-right-color: #bd93f9;
  
  animation: spin 1s linear infinite; /* 1. Заменили ease-in-out на linear */
  transform: translateZ(0);            /* 2. Жесткий триггер GPU для старых браузеров */
  will-change: transform;
  
  margin-bottom: 20px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Платежная форма-заглушка */
.payment-mock {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.mock-input {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: left;
  color: #666;
  font-size: 0.9rem;
}

.mock-row { display: flex; gap: 12px; }
.mock-row .mock-input { flex: 1; margin-bottom: 0; }

.disappearing-text {
  animation: fadeOut 10s forwards;
  will-change: transform;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  90% {
    opacity: 1; 
  }
  100% {
    opacity: 0; 
    visibility: hidden;
  }
}