/* ============================================================
   PACKAGES PRICING MODAL — World Class Premium
   ============================================================ */

/* Modal size adjustment for packages */
.modal-packages {
  max-width: 520px;
}

.modal-packages .modal-body {
  padding: 1rem 1.2rem 2rem;
}

/* Packages Header */
.packages-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ph-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(240,180,41,0.15), rgba(139,92,246,0.12));
  border: 2px solid rgba(240,180,41,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 0.8rem;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

.ph-icon i {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 16px rgba(240,180,41,0.6));
}

.ph-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.ph-subtitle {
  font-size: 0.78rem;
  color: var(--t3);
  line-height: 1.5;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Package Card */
.pkg-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  overflow: visible;
  animation: pkgSlideIn 0.4s var(--ease-out) backwards;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.pkg-card:nth-child(1) { animation-delay: 0.1s; }
.pkg-card:nth-child(2) { animation-delay: 0.2s; }
.pkg-card:nth-child(3) { animation-delay: 0.3s; }

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

.pkg-card:hover {
  border-color: rgba(79,142,247,0.30);
  background: rgba(79,142,247,0.06);
  transform: translateX(4px);
}

.pkg-card.selected {
  border-color: rgba(79,142,247,0.60);
  background: rgba(79,142,247,0.12);
  box-shadow: 0 0 0 4px rgba(79,142,247,0.15), 0 8px 32px rgba(79,142,247,0.20);
  transform: scale(1.02);
}

/* Color variants */
.pkg-card.pkg-blue:hover,
.pkg-card.pkg-blue.selected {
  border-color: rgba(79,142,247,0.50);
  background: rgba(79,142,247,0.10);
}

.pkg-card.pkg-gold:hover,
.pkg-card.pkg-gold.selected {
  border-color: rgba(240,180,41,0.50);
  background: rgba(240,180,41,0.08);
  box-shadow: 0 0 0 4px rgba(240,180,41,0.12), 0 8px 32px rgba(240,180,41,0.15);
}

.pkg-card.pkg-purple:hover,
.pkg-card.pkg-purple.selected {
  border-color: rgba(139,92,246,0.50);
  background: rgba(139,92,246,0.10);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12), 0 8px 32px rgba(139,92,246,0.15);
}

/* Popular Badge */
.pkg-popular-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(255,107,107,0.40);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(255,107,107,0.30);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255,107,107,0.50);
  }
}

/* Package Header */
.pkg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.pkg-info {
  flex: 1;
  min-width: 0;
}

.pkg-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pkg-description {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  font-weight: 500;
}

.pkg-price-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.pkg-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pkg-card.pkg-gold .pkg-price {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pkg-card.pkg-purple .pkg-price {
  background: linear-gradient(135deg, #8B5CF6, #c4a8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pkg-currency {
  font-size: 0.68rem;
  color: var(--t3);
  font-weight: 700;
}

.pkg-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 10px;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.pkg-card.pkg-gold .pkg-duration {
  background: rgba(240,180,41,0.12);
  border-color: rgba(240,180,41,0.25);
  color: var(--gold-bright);
}

.pkg-card.pkg-purple .pkg-duration {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.25);
  color: #c4a8ff;
}

/* Features List */
.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  flex-grow: 1;
}

.pkg-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  font-weight: 500;
}

.pkg-feature i {
  color: var(--teal);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Selected Package Summary */
.selected-package-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(79,142,247,0.08);
  border: 2px solid rgba(79,142,247,0.25);
  border-radius: var(--r-lg);
  margin-bottom: 1.2rem;
  animation: summarySlideIn 0.4s var(--ease-out);
}

@keyframes summarySlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sps-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid rgba(79,142,247,0.30);
}

.sps-info {
  flex: 1;
}

.sps-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 0.15rem;
}

.sps-info p {
  font-size: 0.72rem;
  color: var(--t3);
}

.sps-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Package Card Skeleton */
.pkg-card-skeleton {
  height: 140px;
  border-radius: var(--r-lg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(79,142,247,0.08) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 400% 100%;
  animation: shimmerPremium 2s ease-in-out infinite;
}

/* Premium Payment Button with Animation */
.btn-premium-pay {
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: payBtnPulse 2s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(232,52,74,0.35);
}

.btn-premium-pay:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(232,52,74,0.50);
}

.btn-premium-pay:active {
  transform: translateY(0) scale(0.98);
}

@keyframes payBtnPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(232,52,74,0.35);
  }
  50% {
    box-shadow: 0 8px 40px rgba(232,52,74,0.50), 0 0 0 4px rgba(232,52,74,0.15);
  }
}

/* Shine effect on button */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  animation: btnShineSlide 3s ease-in-out infinite;
}

@keyframes btnShineSlide {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 200%;
  }
}

/* Responsive */
@media (min-width: 600px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .pkg-card {
    padding: 1.25rem;
    min-height: 240px;
  }
  
  .pkg-header {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  .pkg-price-badge {
    align-items: flex-start;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .modal-packages {
    max-width: 720px;
  }
  
  .modal-packages .modal-body {
    padding: 1.5rem 1.5rem 2.5rem;
  }
}

/* Mobile Compact */
@media (max-width: 400px) {
  .pkg-price {
    font-size: 1.2rem;
  }
  
  .pkg-name {
    font-size: 0.95rem;
  }
  
  .pkg-features {
    gap: 0.35rem;
  }
  
  .pkg-feature {
    font-size: 0.7rem;
  }
}
