/*
  DXR Store — Premium Dark Pro Modal
  Elegant cyan/teal design - easy on the eyes
*/

/* ============================
   OVERLAY
   ============================ */
.benefits-modal {
  z-index: 9999;
}

.benefits-modal.active .benefits-modal-overlay {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(6, 182, 212, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(20, 184, 166, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ============================
   MODAL BOX
   ============================ */
.benefits-modal-box {
  background: linear-gradient(
    160deg,
    rgba(15, 23, 35, 0.98) 0%,
    rgba(8, 15, 25, 0.99) 100%
  );
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 50px rgba(6, 182, 212, 0.08),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 50px 100px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  max-width: 480px;
  width: 94%;
  max-height: 88vh;
}

/* Animated border glow - cyan/teal */
.benefits-modal-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.4),
    rgba(20, 184, 166, 0.25),
    rgba(45, 212, 191, 0.15),
    rgba(20, 184, 166, 0.25),
    rgba(6, 182, 212, 0.4)
  );
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Shine on open */
.benefits-modal-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
  opacity: 0;
}

.benefits-modal.active .benefits-modal-box::after {
  animation: modalShine 0.8s ease-out 0.2s forwards;
}

@keyframes modalShine {
  0% { left: -100%; opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ============================
   CONTENT
   ============================ */
.benefits-modal-content {
  position: relative;
  z-index: 5;
  padding: 32px 28px 28px;
  overflow-y: auto;
  max-height: calc(88vh - 20px);
}

/* Top glow decoration */
.benefits-modal-content::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Icon Badge */
.bm-icon-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(20, 184, 166, 0.06));
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 
    0 0 25px rgba(6, 182, 212, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.bm-icon-badge svg {
  width: 32px;
  height: 32px;
  stroke: #67e8f9;
  filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.3));
}

/* Title */
.bm-title {
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Subtitle */
.bm-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 0 0 18px;
  font-weight: 500;
}

/* Highlight box */
.bm-highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(20, 184, 166, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #cffafe;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.06);
}

/* Section title */
.bm-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px;
  text-align: center;
}

/* Divider */
.bm-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 182, 212, 0.2) 30%,
    rgba(20, 184, 166, 0.2) 70%,
    transparent 100%
  );
  margin: 22px 0;
}

/* Lists */
.bm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.2s ease;
}

.bm-list li:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
}

.bm-list li:last-child {
  margin-bottom: 0;
}

.bm-list li svg {
  width: 20px;
  height: 20px;
  stroke: #22d3ee;
  flex-shrink: 0;
}

/* CTA Section */
.bm-cta-section {
  margin-top: 26px;
  text-align: center;
}

.bm-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #0891b2, #06b6d4, #14b8a6);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bm-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.bm-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 30px rgba(6, 182, 212, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bm-cta-btn:hover::before {
  left: 100%;
}

.bm-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.bm-cta-btn i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.bm-cta-subtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 14px 0 0;
}

/* ============================
   CLOSE BUTTON
   ============================ */
.benefits-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.benefits-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.55);
  transition: stroke 0.2s ease;
}

.benefits-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.benefits-modal-close:hover svg {
  stroke: #fca5a5;
}

.benefits-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.35);
}

/* ============================
   ANIMATIONS
   ============================ */
.benefits-modal {
  visibility: hidden;
  opacity: 0;
}

.benefits-modal.active {
  visibility: visible;
  opacity: 1;
}

.benefits-modal-overlay {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.benefits-modal.active .benefits-modal-overlay {
  opacity: 1;
}

.benefits-modal-box {
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefits-modal.active .benefits-modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.benefits-modal.closing .benefits-modal-overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.benefits-modal.closing .benefits-modal-box {
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  transition: all 0.25s ease;
}

/* ============================
   PAYMENT GATEWAY - GOLDEN PREMIUM
   ============================ */
.bm-payment-coming {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.06) 0%,
    rgba(245, 158, 11, 0.03) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated golden top line */
.bm-payment-coming::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #d97706,
    #f59e0b,
    #fbbf24,
    #f59e0b,
    #d97706
  );
  background-size: 200% 100%;
  animation: goldShimmer 2.5s linear infinite;
  border-radius: 18px 18px 0 0;
}

@keyframes goldShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Sparkle decoration */
.bm-payment-coming::after {
  content: "✨";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

.bm-payment-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 35px rgba(251, 191, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bm-payment-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fcd34d;
  filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.4));
}

.bm-payment-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bm-payment-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.bm-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1917;
  font-size: 11px;
  font-weight: 800;
  border-radius: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 
    0 3px 15px rgba(251, 191, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.bm-payment-badge::before {
  content: "🚀";
  font-size: 11px;
}

.bm-payment-desc {
  font-size: 14px;
  color: #fde68a;
  margin: 0;
  font-weight: 500;
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
  .benefits-modal-box,
  .benefits-modal-overlay,
  .benefits-modal-close,
  .bm-cta-btn,
  .bm-list li {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
  
  .benefits-modal.active .benefits-modal-box {
    transform: none !important;
  }
  
  .benefits-modal-box::before,
  .benefits-modal-box::after,
  .bm-payment-coming::before,
  .bm-payment-coming::after {
    animation: none !important;
  }
}

/* ============================
   MOBILE
   ============================ */
@media (max-width: 480px) {
  .benefits-modal-box {
    border-radius: 20px;
    max-height: 85vh;
  }
  
  .benefits-modal-content {
    padding: 26px 20px 22px;
  }
  
  .bm-icon-badge {
    width: 56px;
    height: 56px;
  }
  
  .bm-icon-badge svg {
    width: 28px;
    height: 28px;
  }
  
  .bm-title {
    font-size: 24px;
  }
  
  .bm-list li {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .bm-cta-btn {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: 14px;
  }
  
  .bm-payment-coming {
    padding: 16px;
    margin-top: 20px;
  }
  
  .bm-payment-icon {
    width: 52px;
    height: 52px;
  }
  
  .bm-payment-title {
    font-size: 15px;
  }
  
  .bm-payment-badge {
    font-size: 10px;
    padding: 6px 12px;
  }
}
