/* Shared Login / Upgrade modal styles (used on the clip page, pricing page, etc.) */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalSlideIn 0.3s ease;
}

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

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.login-modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.login-modal-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(138, 99, 210, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orchid);
}

.login-modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.login-modal > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.75rem 0;
}

.login-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: #ffffff;
  color: #1f2937;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google-login:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.login-modal-divider::before,
.login-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-email-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-email-login:hover {
  border-color: var(--orchid);
  color: var(--orchid);
  background: rgba(138, 99, 210, 0.05);
}

/* Primary Pro upgrade CTA — gradient to draw the eye and drive clicks */
.btn-pro-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
}

.btn-pro-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-pro-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Wider variant for the price-migration preview (table fits comfortably) */
.login-modal.migrate-modal {
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
}

/* Secondary "Maybe later" action — same size as the primary button, no background */
.login-modal-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.login-modal-footer-btn:hover {
  color: var(--text-primary);
}

.login-modal-footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.login-modal-footer a {
  color: var(--orchid);
  text-decoration: none;
  font-weight: 500;
}

.login-modal-footer a:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .login-modal {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    margin: 0.5rem;
  }

  .login-modal-icon {
    width: 72px;
    height: 72px;
  }

  .login-modal-icon svg {
    width: 36px;
    height: 36px;
  }

  .login-modal h3 {
    font-size: 1.25rem;
  }

  .login-modal > p {
    font-size: 0.9rem;
  }
}
