/* *********************************************** Modal Popup Styles *************************************** */
.popup-active {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
  padding: 20px;
  box-sizing: border-box;
}

.popup-modal {
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 50vw;
  max-width: 1200px; /* Prevent too wide on large screens */
  min-width: 320px; /* Minimum width for very small screens */
  max-height: 90vh;
  animation: slideIn 0.3s ease-out;
  border-radius: 12px;
  
  overflow-y: auto;
  
  /* Hide scrollbar for Chrome, Safari, Opera, Edge */
  &::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Large desktop screens */
@media (min-width: 1400px) {
  .popup-modal {
    width: 45vw;
    max-width: 1400px;
  }
  
  .sign-up-container,
  .sign-up-container-guest,
  .verify-container-guest,
  .humanize-content {
    width: 50%;
  }
  
  .humanize-content-title {
    font-size: 20px;
  }
  
  .unlock-premium-title-guest {
    font-size: 24px;
  }
  
  .elab-content-item p {
    font-size: 16px;
  }
}

/* Desktop screens */
@media (min-width: 1024px) and (max-width: 1399px) {
  .popup-modal {
    width: 50vw;
    max-width: 1200px;
  }
  
  .sign-up-container,
  .sign-up-container-guest,
  .verify-container-guest,
  .humanize-content {
    width: 50%;
  }
}

/* Medium screens (tablets and small laptops) */
@media (min-width: 787px) and (max-width: 1023px) {
  .popup-modal {
    width: 70vw;
    max-width: 800px;
  }
  
  .sign-up-container,
  .sign-up-container-guest,
  .verify-container-guest,
  .humanize-content {
    width: 50%;
  }
  
  .humanize-content-title {
    font-size: 17px;
  }
  
  .unlock-premium-title-guest {
    font-size: 20px;
  }
  
  .elab-content-item p {
    font-size: 15px;
  }
  
  .humanize-content {
    padding: 15px;
  }
  
  .sign-up-container,
  .sign-up-container-guest {
    padding: 18px;
  }
}

/* Mobile and small tablet screens */
@media (max-width: 786px) {
  .popup-overlay {
    padding: 10px;
  }
  
  .popup-modal {
    width: 95vw !important;
    max-width: 400px;
    max-height: 95vh;
    min-height: auto;
  }
  
  .limit-popup {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  
  .sign-up-container,
  .sign-up-container-guest,
  .verify-container-guest,
  .humanize-content {
    width: 100% !important;
    padding: 15px !important;
  }
  
  .sign-up-container-guest {
    padding: 20px 15px 15px 15px !important;
  }
  
  .humanize-content-logo {
    display: none !important;
  }
  
  .limit-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 0px 15px;
  }
}

/* Very small mobile screens */
@media (max-width: 480px) {
  .popup-modal {
    width: 98vw !important;
    max-width: none;
    border-radius: 8px;
  }
  
  .popup-overlay {
    padding: 5px;
  }
}

/* Hide mobile header on desktop */
@media (min-width: 787px) {
  .limit-popup-header {
    display: none;
  }
}

.elab-content{
  border-top: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
  padding: 20px 0px;
}

@media (max-width: 786px) {
  .elab-content {
    padding: 15px 0px;
  }
}

.elab-content-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0px;
}

@media (max-width: 786px) {
  .elab-content-item {
    margin: 8px 0px;
    gap: 8px;
  }
  
  .elab-content-item p {
    font-size: 14px;
  }
}

.humanize-user-statistics-item {
  background-color: var(--color-white);
  padding: 2px 8px;
  border-radius: 6px;
  gap: 2px;
  width: fit-content;
  align-items: center;
  display: flex;
}

.humanize-user-statistics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0px;
}

@media (max-width: 786px) {
  .humanize-user-statistics {
    padding: 15px 0px;
    gap: 8px;
  }
}

.humanize-user-statistics-item span {
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 12px;
}

@media (max-width: 786px) {
  .humanize-user-statistics-item span {
    font-size: 11px;
  }
}

@media (min-width: 1400px) {
  .humanize-user-statistics-item span {
    font-size: 13px;
  }
}

.elab-content-item p {
 color: var(--color-white);
 margin: 0px;
}

.popup-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.humanize-content {
  padding: 13px;
  width: 50vw;
  background-color: var(--color-primary-dark);
}

@media (max-width: 786px) {
  .humanize-content {
    padding: 10px;
  }
}

.humanize-content-title{
  color: #92B2D1;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

@media (max-width: 786px) {
  .humanize-content-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

.humanize-content-strong{
  color: var(--color-white);
  font-style: italic;
}

.humanize-content-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

.popup-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.popup-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.popup-close:hover {
  background: #f8f9fa;
  color: #333;
}

.close-popup-icon-desktop{
  cursor: pointer;
}

.close-popup-icon{
  cursor: pointer;
}

.limit-popup {
  display: flex;
}

.sign-up-container {
  width: 50vw;
  padding: 20px;
}

.sign-up-container-guest{
  width: 50vw;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 70px 20px 20px 20px;
}

@media (max-width: 786px) {
  .sign-up-container-guest {
    gap: 12px;
  }
}

@media (min-width: 1400px) {
  .sign-up-container-guest {
    padding: 80px 25px 25px 25px;
    gap: 12px;
  }
}

.guest-premium-content-container{
  padding: 24px 0px;
  border-top: 1px solid #F1F1F1;
  border-bottom: 1px solid #F1F1F1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 786px) {
  .guest-premium-content-container {
    padding: 16px 0px;
    gap: 16px;
  }
}

.signin-with-google{
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #6A94C4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.already-have-account{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 786px) {
  .already-have-account {
    gap: 6px;
  }
  
  .already-have-account span {
    font-size: 13px;
    line-height: 1.4;
  }
}

.daily-limit-icon {
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #882626;
  background-color: #FEECEC;
  width: fit-content;
  border-radius: 6px;
  color: #AF3131;
}

.guest-premium-content{
  font-weight: 400;
  font-size: 14px;
  color: #2F2F2F;
  line-height: 1.5;
}

@media (max-width: 786px) {
  .guest-premium-content {
    font-size: 13px;
  }
}

@media (min-width: 1400px) {
  .guest-premium-content {
    font-size: 15px;
  }
}

.daily-limit-icon-guest {
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #B0A024;
  background-color: #FEFCEB;
  width: fit-content;
  color: #685F15;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.view-price-pricing{
  background-color: var(--color-primary-light);
  color: var(--color-white);
  align-items: center;
  border: none;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-price-pricing:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.upgrading-text {
  padding: 5px 0px;
  margin: 0px;
  line-height: 1.4;
}

@media (max-width: 786px) {
  .upgrading-text {
    padding: 3px 0px;
    font-size: 14px;
  }
}

.unlock-premium-title {
  color: #2F2F2F;
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 786px) {
  .unlock-premium-title {
    font-size: 15px;
  }
}

@media (min-width: 1400px) {
  .unlock-premium-title {
    font-size: 18px;
  }
}

.unlock-premium-title-guest {
  color: #2F2F2F;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

@media (max-width: 786px) {
  .unlock-premium-title-guest {
    font-size: 18px;
  }
}

.all-premium-unlock-features{
  padding: 10px 0px;
}

@media (max-width: 786px) {
  .all-premium-unlock-features {
    padding: 8px 0px;
  }
}

.all-premium-unlock-features-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0px;
  color: #2F2F2F;
}

@media (max-width: 786px) {
  .all-premium-unlock-features-item {
    gap: 10px;
    padding: 3px 0px;
    align-items: flex-start;
  }
  
  .all-premium-unlock-features-item svg {
    margin-top: 2px;
    flex-shrink: 0;
  }
}

@media (min-width: 1400px) {
  .all-premium-unlock-features-item {
    gap: 14px;
    padding: 5px 0px;
  }
}

.bold-content {
  font-weight: 700;
}

.premium-unlock-features-content{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 786px) {
  .premium-unlock-features-content span {
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (min-width: 1400px) {
  .premium-unlock-features-content span {
    font-size: 15px;
    line-height: 1.5;
  }
}

.italic-logo {
  color: var(--color-primary-dark);
  font-style: italic;
}

.daily-limit-icon span {
  color: #AF3131;
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.verify-container-guest {
  width: 50vw;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
}

@media (max-width: 786px) {
  .verify-container-guest {
    gap: 8px;
  }
}

.verify-premium-content-container {
  padding: 4px 0px;
  border-top: 1px solid #F1F1F1;
  border-bottom: 1px solid #F1F1F1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 786px) {
  .verify-premium-content-container {
    gap: 16px;
    padding: 8px 0px;
  }
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* *********************************************** Modal Popup Styles *************************************** */
