/* ManjuLAB SaaS — registration gate, marketing, header nav */

.saas-header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.saas-nav-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.saas-nav-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #6ee7b7;
}

.saas-nav-btn--primary {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border-color: transparent;
  color: #042f2e;
}

.saas-nav-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.saas-nav-user {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
}

/* Marketing strip — above platform circles */
.saas-register-hero {
  width: min(920px, 94vw);
  margin: 0 auto 12px;
  padding: clamp(14px, 3vw, 22px);
  border-radius: 20px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.75));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.saas-register-hero .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #6ee7b7;
  margin: 0 0 8px;
}

.saas-register-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  color: #f8fafc;
  line-height: 1.25;
}

.saas-register-hero .saas-register-lead {
  margin: 0 auto 16px;
  max-width: 52ch;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.saas-free-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.saas-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #d1fae5;
}

.saas-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
  text-align: left;
}

.saas-benefit {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.saas-benefit strong {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.saas-benefit span {
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.45;
}

.saas-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Promo card (subscriptions section) */
.saas-promo {
  width: min(720px, 94vw);
  margin: 24px auto 0;
  padding: 0 12px;
}

.saas-promo-card {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  text-align: center;
}

.saas-promo-card h2 {
  margin: 6px 0 10px;
  color: #f8fafc;
}

.saas-promo-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.9);
}

.saas-promo-prices span {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
}

.saas-promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.saas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.saas-btn-primary {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #042f2e;
}

.saas-btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

/* Registration modal overlay */
.saas-register-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
}

.saas-register-overlay[hidden] {
  display: none;
}

body.saas-register-locked {
  overflow: hidden;
}

.saas-register-card {
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: linear-gradient(160deg, #0f172a 0%, #064e3b 120%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
}

.saas-register-card h2 {
  margin: 8px 0 6px;
  font-size: 1.45rem;
  color: #f8fafc;
}

.saas-register-card .saas-register-sub {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.5;
}

.saas-oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.saas-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.saas-oauth-btn:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.95);
}

.saas-oauth-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.saas-oauth-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.saas-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saas-divider::before,
.saas-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.saas-magic-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: rgba(203, 213, 225, 0.9);
}

.saas-magic-form input[type='email'] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font: inherit;
  margin-bottom: 10px;
}

.saas-magic-form button[type='submit'] {
  width: 100%;
}

.saas-register-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.85rem;
}

.saas-register-success {
  text-align: center;
  padding: 12px 0;
}

.saas-register-success .saas-success-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.anyo-country-field {
  text-align: left;
  margin-bottom: 1rem;
}
.anyo-country-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}
.anyo-country-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 0.9rem;
}
.anyo-country-hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

.saas-register-fineprint {
  margin-top: 16px;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.45;
  text-align: center;
}

.saas-register-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.saas-register-card-wrap {
  position: relative;
}

.saas-platform-locked .portal-core {
  opacity: 0.72;
}

/* Non-blocking welcome strip */
.saas-welcome-strip {
  width: min(920px, 94vw);
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(6, 78, 59, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saas-welcome-strip[hidden] {
  display: none;
}

.saas-welcome-strip-text {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.45;
}

.saas-welcome-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saas-nav-badge--guest {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

/* Guest picker in registration modal */
.saas-guest-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.saas-guest-section h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #f1f5f9;
}

.saas-guest-section p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.85);
}

.saas-guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.saas-guest-chip {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(30, 58, 138, 0.35);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.saas-guest-chip:hover {
  background: rgba(37, 99, 235, 0.45);
  border-color: #93c5fd;
}

.saas-guest-chip.is-selected {
  background: rgba(16, 185, 129, 0.35);
  border-color: #6ee7b7;
  color: #ecfdf5;
}

.saas-guest-random {
  width: 100%;
}

.saas-nav-upgrade {
  font-size: 0.78rem;
  opacity: 0.9;
}

.saas-platform-locked::after {
  content: 'Register to unlock';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: #6ee7b7;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .saas-benefits-grid {
    grid-template-columns: 1fr;
  }
}
