body {
  background-color: #f4f7fb;
  color: #1e293b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.portal-navbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-weight: 800;
}

.portal-hero {
  background: radial-gradient(circle at top right, #1e3a8a 0%, #0f172a 65%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-pill {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #e0f2fe;
  font-size: 0.85rem;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-card {
  background: #ffffff;
  border-radius: 16px;
}

#heroUserCard {
  background: #1e293b;
  color: #f8fafc;
}

#pricing,
#features,
#dashboardSection,
.portal-section {
  scroll-margin-top: 90px;
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}

.price-line {
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.price-line .price-unit {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* SaaS Workspace Layout */
.saas-topbar {
  background: #ffffff;
  border-radius: 14px;
}

.saas-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.status-dot.offline {
  background-color: #94a3b8;
}

.saas-sidebar {
  border-radius: 14px;
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 80px;
  }
}

.saas-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.saas-nav-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.saas-nav-link.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.terminal-log-box {
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  background-color: #0b1120;
  color: #e2e8f0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.terminal-line {
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  word-break: break-word;
}

.terminal-line .log-time {
  color: #64748b;
  margin-right: 8px;
}

.terminal-line .log-tool {
  color: #38bdf8;
  font-weight: 700;
  margin-right: 8px;
}

.terminal-line.level-SUCCESS .log-msg {
  color: #4ade80;
}

.terminal-line.level-WARN .log-msg {
  color: #facc15;
}

.terminal-line.level-ERROR .log-msg {
  color: #f87171;
}
