:root {
  --portal-bg-dark: #0f172a;
  --portal-bg-deep: #111827;
  --portal-primary: #38bdf8;
  --portal-primary-strong: #0ea5e9;
  --portal-success: #22c55e;
  --portal-violet: #8b5cf6;
  --portal-amber: #f59e0b;
  --portal-text: #0f172a;
  --portal-muted: #475569;
  --portal-border: rgba(148, 163, 184, 0.22);
  --portal-surface: rgba(255, 255, 255, 0.84);
  --portal-surface-strong: rgba(255, 255, 255, 0.92);
}

body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.10), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  color: var(--portal-text);
}

.portal-hero {
  color: #e2e8f0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.portal-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.18;
}

.portal-hero-glow-1 {
  width: 300px;
  height: 300px;
  background: #0ea5e9;
  top: -90px;
  left: -40px;
}

.portal-hero-glow-2 {
  width: 280px;
  height: 280px;
  background: #8b5cf6;
  right: -40px;
  bottom: -80px;
}

.portal-kicker,
.portal-section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--portal-primary);
}

.portal-hero .lead {
  color: #cbd5e1;
  max-width: 62ch;
}

.portal-hero-panel {
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 1.25rem;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-chip-soft {
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.portal-mini-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-mini-list span {
  color: #94a3b8;
}

.portal-mini-list strong {
  color: #fff;
  font-weight: 600;
}

.portal-stat-card {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
}

.portal-stat-number {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.portal-stat-label {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.portal-section {
  position: relative;
}

.portal-section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(226,232,240,0.45));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.portal-unit-card,
.portal-info-card {
  border-radius: 1.35rem;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-unit-card:hover,
.portal-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.2rem 2.4rem rgba(15, 23, 42, 0.10) !important;
}

.portal-unit-ud1:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.portal-unit-ud2:hover {
  border-color: rgba(34, 197, 94, 0.35);
}

.portal-unit-ud3:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.portal-unit-ud4:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.portal-card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-primary-strong);
}

.portal-subcard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-subcard-row {
  width: 100%;
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: inherit;
  transition: all 0.2s ease;
}

.portal-subcard-row:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-2px);
}

.portal-subcard-label {
  display: inline-block;
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #0369a1;
}

.portal-subcard-content {
  min-width: 0;
}

.portal-subcard-content strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.portal-subcard-content small {
  display: block;
  color: var(--portal-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.portal-subcard-arrow {
  color: #0ea5e9;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

.portal-tree {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #0f172a;
  color: #dbeafe;
  border: 1px solid #1e293b;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-x: auto;
}

.portal-tree code {
  color: #93c5fd;
}

.portal-timeline {
  display: grid;
  gap: 1rem;
}

.portal-timeline-item {
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid rgba(14, 165, 233, 0.5);
  border-radius: 0.8rem;
  background: rgba(248, 250, 252, 0.7);
}

.portal-timeline-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.portal-timeline-item span {
  color: var(--portal-muted);
}

@media (max-width: 991.98px) {
  .portal-hero .display-4 {
    font-size: 2.4rem;
  }
}

@media (max-width: 767.98px) {
  .portal-hero .display-4 {
    font-size: 2rem;
  }

  .portal-mini-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .portal-subcard-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .portal-subcard-arrow {
    text-align: left;
  }

  .smpp-module {
    text-align: left !important;
  }
}