/* ===== СИСТЕМА АЛЕРТОВ ===== */

.alert-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  background: linear-gradient(135deg, #1A1A1F 0%, #25252A 100%);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #FF0054;
  position: relative;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert.success {
  border-left-color: #10B981;
}

.alert.error {
  border-left-color: #EF4444;
}

.alert.warning {
  border-left-color: #F59E0B;
}

.alert.info {
  border-left-color: #3B82F6;
}

/* Специальные алерты для промокодов */
.alert.promo-expired {
  border-left-color: #F59E0B;
  background: linear-gradient(135deg, #1A1A1F 0%, #2D1B0E 100%);
}

.alert.promo-limit {
  border-left-color: #F59E0B;
  background: linear-gradient(135deg, #1A1A1F 0%, #2D1B0E 100%);
}

.alert.promo-already-used {
  border-left-color: #3B82F6;
  background: linear-gradient(135deg, #1A1A1F 0%, #0E1B2D 100%);
}

.alert.promo-not-found {
  border-left-color: #EF4444;
  background: linear-gradient(135deg, #1A1A1F 0%, #2D0E0E 100%);
}

.alert.promo-success {
  border-left-color: #10B981;
  background: linear-gradient(135deg, #1A1A1F 0%, #0E2D1B 100%);
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-message {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.alert-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF0054, #FF69B4);
  transition: width 0.1s linear;
}

.alert.success .alert-timer {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.alert.error .alert-timer {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.alert.warning .alert-timer {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.alert.info .alert-timer {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

/* Адаптивность */
@media (max-width: 768px) {
  .alert {
    min-width: 280px;
    max-width: 350px;
    padding: 0.8rem 1.2rem;
  }
  
  .alert-container {
    bottom: 15px;
    right: 15px;
  }
}
