/* ==========================================
   PREMIUM FEATURES MODAL - Модальное окно премиум функций
   ========================================== */

.premium-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: premiumModalFadeIn 0.3s ease-out;
}

@keyframes premiumModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Overlay */
.premium-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Container */
.premium-modal__container {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(11, 18, 32, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px rgba(139, 92, 246, 0.15);
  animation: premiumModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premiumModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button - как в auth-modal */
.premium-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.premium-modal__close:hover {
  opacity: 1;
}

/* Content */
.premium-modal__content {
  padding: 32px 28px 28px;
}

/* Badge */
.premium-modal__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(14, 165, 233, 0.15));
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  color: #a78bfa;
  animation: premiumBadgePulse 2s ease-in-out infinite;
}

@keyframes premiumBadgePulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.5);
  }
}

.premium-modal__badge svg {
  width: 30px;
  height: 30px;
}

/* Header */
.premium-modal__header {
  text-align: center;
  margin-bottom: 20px;
}

.premium-modal__title {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
  line-height: 1.2;
}

.premium-modal__subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Features List */
.premium-modal__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.premium-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.premium-feature:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateX(4px);
}

.premium-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid currentColor;
}

.premium-feature__icon svg {
  width: 20px;
  height: 20px;
}

.premium-feature__content {
  flex: 1;
}

.premium-feature__title {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 3px;
  line-height: 1.3;
}

.premium-feature__desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* CTA Button */
.premium-modal__cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8b5cf6 0%, #0ea5e9 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.premium-modal__cta::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;
}

.premium-modal__cta:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 40px rgba(139, 92, 246, 0.5),
    0 0 60px rgba(14, 165, 233, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.premium-modal__cta:hover::before {
  left: 100%;
}

.premium-modal__cta:active {
  transform: translateY(0);
}

.premium-modal__cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.premium-modal__cta:hover svg {
  transform: translateX(4px);
}

/* Footer Note */
.premium-modal__note {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .premium-modal {
    padding: 10px;
  }

  .premium-modal__container {
    border-radius: 18px;
    max-height: 95vh;
  }

  .premium-modal__content {
    padding: 28px 20px 20px;
  }

  .premium-modal__close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .premium-modal__badge {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .premium-modal__badge svg {
    width: 26px;
    height: 26px;
  }

  .premium-modal__title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .premium-modal__subtitle {
    font-size: 13px;
  }

  .premium-modal__features {
    gap: 8px;
    margin-bottom: 16px;
  }

  .premium-feature {
    padding: 10px;
    gap: 10px;
  }

  .premium-feature__icon {
    width: 36px;
    height: 36px;
  }

  .premium-feature__icon svg {
    width: 18px;
    height: 18px;
  }

  .premium-feature__title {
    font-size: 14px;
  }

  .premium-feature__desc {
    font-size: 12px;
  }

  .premium-modal__cta {
    padding: 12px 20px;
    font-size: 15px;
  }

  .premium-modal__note {
    font-size: 11px;
    margin-top: 10px;
    padding-top: 10px;
  }
}

/* Scrollbar styling */
.premium-modal__container::-webkit-scrollbar {
  width: 8px;
}

.premium-modal__container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.premium-modal__container::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.premium-modal__container::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Prevent body scroll when modal is open */
body.premium-modal-open {
  overflow: hidden;
}
