/* ManjuLAB SaaS hub — yogabrata-style cosmic portal */
.saas-hub-page .portal-circle-grid {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.saas-hub-page .portal-header h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.saas-user-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #99f6e4;
}

.saas-user-badge[hidden],
#saasRegisterPanel:not(.reveal-open) {
  display: none !important;
}

.portal--highlight .portal-ring {
  animation-duration: 2s !important;
  border-color: #5eead4 !important;
  box-shadow: 0 0 64px rgba(94, 234, 212, 0.45);
}

/* Inline registration — does not block cosmic hub */
.saas-register-panel {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 12px;
}

.saas-register-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.88));
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .saas-register-panel-inner {
    grid-template-columns: 1fr;
  }
}

.saas-register-heading {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #f8fafc;
}

.saas-register-lead {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
}

.saas-register-form label select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font: inherit;
}

.saas-register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.saas-register-skip {
  background: transparent !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
}

.saas-wip-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.saas-catalog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.saas-catalog-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.saas-catalog-nav a:hover,
.saas-catalog-nav a.active {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.4);
}

.saas-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.saas-catalog-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.25s, border-color 0.25s;
}

.saas-catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.35);
}

.saas-catalog-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #f1f5f9;
}

.saas-catalog-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.saas-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  margin-bottom: 0.5rem;
}

.saas-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* SMB catalog sub-pages — circular portal theme */
.smb-catalog-circles {
  display: flex !important;
  flex-flow: row wrap;
  justify-content: center !important;
  align-items: center !important;
  align-content: center;
  gap: clamp(32px, 6vw, 72px);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.smb-catalog-circles .portal {
  width: min(250px, 44vw);
  height: min(250px, 44vw);
}

.smb-catalog-circles a.portal {
  text-decoration: none;
  color: inherit;
}

.smb-catalog-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

@media (max-width: 899px) {
  .smb-catalog-circles {
    flex-direction: column !important;
  }
}

/* Fix portal login overlay hidden state globally on SaaS host */
.portal-login-overlay[hidden] {
  display: none !important;
}
