/* ==============================================
   VyzAppz — Product Auth Gate
   Registration overlay + session for product pages
   ============================================== */

/* ---------- Auth Gate Overlay ---------- */
.vyz-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: vyzAuthFadeIn 0.4s ease;
}

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

.vyz-auth-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: vyzAuthSlideIn 0.4s ease;
}

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

.vyz-auth-card .vyz-auth-logo {
  display: block;
  height: 48px;
  margin: 0 auto 1.25rem;
}

.vyz-auth-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.vyz-auth-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.vyz-auth-form-group {
  margin-bottom: 1rem;
}

.vyz-auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.vyz-auth-form-group input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.vyz-auth-form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: #ffffff;
}

.vyz-auth-form-group input::placeholder {
  color: #94a3b8;
}

.vyz-auth-form-row {
  display: flex;
  gap: 0.75rem;
}

.vyz-auth-form-row .vyz-auth-form-group {
  flex: 1;
}

.vyz-auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  display: none;
}

.vyz-auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
  display: none;
}

.vyz-auth-success h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #15803d;
}

.vyz-auth-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.vyz-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.vyz-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vyz-auth-divider {
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  margin: 1.25rem 0;
  position: relative;
}

.vyz-auth-divider::before,
.vyz-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: #e2e8f0;
}

.vyz-auth-divider::before { left: 0; }
.vyz-auth-divider::after { right: 0; }

.vyz-auth-toggle {
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 1rem;
}

.vyz-auth-toggle a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.vyz-auth-toggle a:hover {
  text-decoration: underline;
}

.vyz-auth-terms {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 1rem;
  line-height: 1.5;
}

.vyz-auth-terms a {
  color: #3b82f6;
  text-decoration: underline;
}

/* Skip auth link */
.vyz-auth-skip {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.vyz-auth-skip a {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.vyz-auth-skip a:hover {
  color: #3b82f6;
}

/* ---------- Session User Bar ---------- */
.vyz-session-bar {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.82rem;
  color: #475569;
  position: relative;
  z-index: 999;
}

.vyz-session-bar .vyz-session-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.vyz-session-bar .vyz-session-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.vyz-session-bar .vyz-session-logout {
  background: none;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.vyz-session-bar .vyz-session-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ---------- Email Verification Banner ---------- */
.vyz-verify-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #92400e;
  display: none;
}

.vyz-verify-banner a {
  color: #d97706;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Pricing Gate Modal ---------- */
.vyz-pricing-gate {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: vyzAuthFadeIn 0.3s ease;
}

.vyz-pricing-gate-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: vyzAuthSlideIn 0.35s ease;
}

.vyz-pricing-gate-card h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.25rem;
}

.vyz-pricing-gate .vyz-pricing-plan-info {
  text-align: center;
  background: #f0f9ff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dbeafe;
}

.vyz-pricing-plan-info .plan-name {
  font-weight: 700;
  color: #1e40af;
  font-size: 1.1rem;
}

.vyz-pricing-plan-info .plan-price {
  color: #64748b;
  font-size: 0.9rem;
}

.vyz-pricing-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.vyz-pricing-close:hover {
  color: #0f172a;
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .vyz-auth-form-row {
    flex-direction: column;
    gap: 0;
  }
  .vyz-auth-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 16px;
  }
  .vyz-pricing-gate-card {
    padding: 2rem 1.25rem 1.5rem;
  }
  .vyz-session-bar {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}
