/* Welcome consent modal, capability guidance dock, contextual upgrade */
.welcome-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.welcome-consent-overlay.visible { opacity: 1; }
.welcome-consent-overlay.fade-out { opacity: 0; pointer-events: none; }

.welcome-consent-modal {
  max-width: 520px;
  width: 100%;
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 234, 255, 0.2);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(6, 10, 20, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.welcome-consent-modal h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: #f2f6ff;
}

.welcome-consent-body,
.welcome-consent-legal {
  margin: 0 0 14px;
  line-height: 1.55;
  color: rgba(220, 230, 250, 0.78);
  font-size: 0.95rem;
}

.welcome-consent-legal a { color: #00eaff; }

.welcome-consent-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 0.88rem;
  color: rgba(220, 230, 250, 0.85);
  cursor: pointer;
}

.welcome-consent-checkbox input { margin-top: 3px; flex-shrink: 0; }

.welcome-consent-agree {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00eaff, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.welcome-consent-agree:disabled { opacity: 0.45; cursor: not-allowed; }

.welcome-enjoy {
  text-align: center;
  font-size: 2rem;
  color: #00eaff;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.welcome-enjoy.visible {
  opacity: 1;
  transform: scale(1);
}

.capability-guidance-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  max-width: 300px;
  padding: 14px 36px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, 0.22);
  background: rgba(12, 18, 32, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.capability-guidance-dock.visible {
  opacity: 1;
  transform: translateY(0);
}

.capability-guidance-dock.dismissed {
  opacity: 0;
  transform: translateY(12px);
}

.cg-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: rgba(220, 230, 250, 0.55);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.cg-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f2f6ff;
  margin-bottom: 6px;
}

.cg-body {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(220, 230, 250, 0.72);
}

.cg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cg-link {
  font-size: 0.8rem;
  color: #00eaff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.25);
}

.cg-link-btn {
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.contextual-upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 20, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.contextual-upgrade-overlay.visible { opacity: 1; }

.contextual-upgrade-modal {
  max-width: 420px;
  width: 100%;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111827;
  text-align: center;
}

.contextual-upgrade-modal h3 {
  margin: 0 0 10px;
  color: #f2f6ff;
}

.contextual-upgrade-modal p {
  margin: 0 0 18px;
  color: rgba(220, 230, 250, 0.75);
  line-height: 1.5;
}

.contextual-upgrade-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-upgrade-view {
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00eaff, #7c3aed);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.btn-upgrade-dismiss {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(220, 230, 250, 0.8);
  cursor: pointer;
}

.signup-step-compact {
  opacity: 0.55;
  transform: scale(0.98);
  pointer-events: none;
  max-height: 120px;
  overflow: hidden;
  margin-bottom: 12px;
}

.security-pro-page {
  min-height: 100vh;
  padding: 32px 16px 48px;
  background: radial-gradient(ellipse at top, rgba(0, 234, 255, 0.06), transparent 55%), #060a14;
}

.security-pro-shell {
  max-width: 640px;
  margin: 0 auto;
}

.security-pro-back {
  color: #00eaff;
  text-decoration: none;
  font-size: 0.9rem;
}

.security-pro-page h1 {
  margin: 16px 0 10px;
  color: #f2f6ff;
}

.security-pro-lead {
  color: rgba(220, 230, 250, 0.75);
  line-height: 1.55;
}

.security-pro-info {
  margin: 24px 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(220, 230, 250, 0.78);
}

.security-pro-info h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #f2f6ff;
}

.security-pro-info ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.security-pro-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(220, 230, 250, 0.62);
}

.security-pro-field {
  margin-bottom: 14px;
}

.security-pro-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: rgba(220, 230, 250, 0.75);
}

.security-pro-field input,
.security-pro-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2f6ff;
}

.security-pro-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(220, 230, 250, 0.82);
}

.security-pro-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00eaff, #7c3aed);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.security-pro-error {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.security-pro-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 234, 255, 0.08);
  border: 1px solid rgba(0, 234, 255, 0.2);
  color: rgba(220, 230, 250, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-consent-overlay,
  .capability-guidance-dock,
  .contextual-upgrade-overlay,
  .welcome-enjoy { transition: none; }
}
