/* Sticky button for mobile devices with animation */
@media screen and (max-width: 768px) {
  .premium_video_register_button {
    position: fixed;
    bottom: 60px;
    /* Adjust based on bottom navigation height */
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: pulseEffect 2s infinite;
    transform-origin: center;
  }

  /* Button animation */
  @keyframes pulseEffect {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.03);
    }

    100% {
      transform: scale(1);
    }
  }

  /* Responsive hover effect */
  .premium_video_register_button:active {
    transform: scale(0.95);
    background-color: #0056b3;
    /* Darker shade when pressed */
  }

  /* Make button adapt to different screen sizes */
  @media screen and (max-width: 480px) {
    .premium_video_register_button {
      width: 94%;
      font-size: 0.95em;
      padding: 12px;
    }
  }

  @media screen and (max-width: 320px) {
    .premium_video_register_button {
      width: 96%;
      font-size: 0.9em;
      padding: 10px;
    }
  }
}

/* hide bottom navigation on desktop devices and show in mobile nad tablet devices */
@media screen and (min-width: 768px) {
  .appBottomMenu {
    display: none;
  }
}

/* 4-Box OTP Input Styles */
.otp-input-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-box {
  width: 50px;
  height: 50px;
  border: 2px solid #dedede;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background: #fff;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0 4px;
  /* Added spacing */
}

.otp-box:focus {
  border-color: var(--primary-color, #007bff);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.otp-box.filled {
  border-color: #333;
  background: #f8f9fa;
}

.dark-mode-active .otp-box {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

.dark-mode-active .otp-box:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Step container transitions */
.register-step {
  transition: all 0.3s ease;
}

/* ============================================
   Premium Popup Responsive Styles
   ============================================ */

/* Base popup styles */
.swal2-popup.rounded-5 {
  max-width: 95vw !important;
  font-family: 'Outfit', sans-serif !important;
}

/* Premium Button Styles */
.premium-confirm-btn {
  padding: 15px 45px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.premium-confirm-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
  filter: brightness(1.1);
}

.btn-premium-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
}

.btn-premium-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.premium-cancel-btn {
  padding: 15px 45px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.premium-cancel-btn:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px) !important;
}

/* Mobile responsive styles for premium popups */
@media screen and (max-width: 600px) {

  /* Popup container */
  .swal2-popup.rounded-5 {
    width: 95vw !important;
    padding: 30px 16px !important;
    margin: 0 auto !important;
  }

  /* Premium popup wrapper */
  .premium-popup-wrapper {
    padding: 5px !important;
  }

  /* Header title */
  .premium-popup-wrapper h2 {
    font-size: 22px !important;
    margin-bottom: 12px !important;
  }

  /* Description text */
  .premium-popup-wrapper p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  /* Benefits grid - single column on mobile */
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
  }

  /* Benefit cards */
  .benefit-card {
    padding: 12px !important;
  }

  /* Feature rows container */
  .feature-rows {
    padding: 18px !important;
    margin-bottom: 25px !important;
  }

  /* Auto-register notice */
  .premium-popup-wrapper>div[style*="background: #fff8e1"],
  .premium-popup-wrapper>div[style*="background: rgba(245, 158, 11"] {
    font-size: 12px !important;
    padding: 12px 15px !important;
  }

  /* Button container - stack vertically */
  .swal2-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 10px !important;
  }

  /* All buttons - full width on mobile */
  .swal2-actions button {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 20px !important;
  }

  /* Primary button (Get Access Now / Upgrade Account) */
  .swal2-confirm {
    order: 1 !important;
  }

  /* Cancel button (Maybe Later / Not Now) */
  .swal2-cancel {
    order: 2 !important;
  }
}

/* Extra small screens */
@media screen and (max-width: 380px) {
  .premium-popup-wrapper h2 {
    font-size: 20px !important;
  }

  .header-badge {
    font-size: 10px !important;
    padding: 5px 12px !important;
  }

  .benefit-card div[style*="font-weight: 700"] {
    font-size: 13px !important;
  }

  .swal2-actions button {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }
}