:root {
  --sl-primary: #ff6b35;
  --sl-primary-2: #e85a27;
  --sl-green: #2e7d32;
  --sl-ink: #0b0f16;
  --sl-dark: #0f172a;
  --sl-muted: #64748b;
  --sl-border: #e2e8f0;
  --sl-bg: #f6f8fb;
  --sl-card: #ffffff;
  --sl-radius: 14px;
  --sl-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  --sl-shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.06);
}

html,
body {
  height: 100%;
}

body.portal-body {
  background: var(--sl-bg);
  color: var(--sl-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.portal-page {
  padding: 2.25rem 0 3rem;
}
@media (max-width: 767.98px) {
  .portal-page {
    padding: 1.5rem 0 2.5rem;
  }
}

.portal-navbar {
  background: rgba(11, 15, 22, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.portal-nav-links .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.portal-nav-links .nav-link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.portal-nav-links .nav-link.active {
  color: #fff;
  position: relative;
}
.portal-nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sl-primary), rgba(255, 255, 255, 0.06));
  opacity: 0.9;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.portal-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.16);
  color: var(--sl-primary);
}

.portal-btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}
.portal-btn-ghost:hover,
.portal-btn-ghost:focus {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-card {
  background: var(--sl-card);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow-soft);
}

.portal-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--sl-border);
}

.portal-card .table {
  margin-bottom: 0;
}
.portal-card .table th,
.portal-card .table td {
  padding: 0.85rem 1rem;
  border-color: var(--sl-border);
}
.portal-card .table.table-sm > :not(caption) > * > * {
  padding: 0.65rem 0.85rem;
}
.portal-card .table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-muted);
}
.portal-card .table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.landing-hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 10% 10%, rgba(46, 125, 50, 0.20), transparent 60%),
    radial-gradient(1200px 520px at 90% 0%, rgba(255, 107, 53, 0.20), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.96), rgba(11, 15, 22, 0.92));
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(800px 300px at 20% 30%, rgba(46, 125, 50, 0.22), transparent 55%),
    radial-gradient(800px 300px at 80% 60%, rgba(255, 107, 53, 0.18), transparent 55%);
  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
}

.landing-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.landing-hero-main .hero-inner {
  padding: 4.5rem 0 3.75rem;
}
@media (max-width: 991.98px) {
  .landing-hero-main .hero-inner {
    padding: 3.5rem 0 3rem;
  }
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.landing-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sl-primary);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.14);
}

.landing-title {
  color: #fff;
  letter-spacing: -0.02em;
}

.landing-lead {
  color: rgba(255, 255, 255, 0.74);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
body.landing-page .landing-lead {
  text-align: center;
  width: 100%;
}


.landing-hero .landing-lead {
  text-align: center;
}
.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-steps {
  color: rgba(255, 255, 255, 0.86);
}

.hero-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.hero-step i {
  color: var(--sl-primary);
}

.hero-search-card {
  background: #fff;
  color: var(--sl-dark);
  border-radius: calc(var(--sl-radius) + 2px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--sl-shadow);
  padding: 1.25rem 1.35rem;
  width: 100%;
  max-width: 560px;
}
.hero-search-card .form-control {
  background: #fff;
}
.hero-search-card .btn {
  white-space: nowrap;
}
.hero-quick-note {
  font-size: 0.82rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--sl-radius) + 4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.landing-hero-main .hero-stat {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.hero-stat .num {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.70);
}

.text-muted {
  color: var(--sl-muted) !important;
}

.btn-primary {
  background: var(--sl-primary);
  border-color: var(--sl-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sl-primary-2);
  border-color: var(--sl-primary-2);
}

.btn-outline-primary {
  color: var(--sl-primary);
  border-color: rgba(255, 107, 53, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(255, 107, 53, 0.10);
  color: var(--sl-primary);
  border-color: rgba(255, 107, 53, 0.35);
}

.badge-soft {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--sl-dark);
}

.badge-soft.success {
  background: rgba(46, 125, 50, 0.14);
  border-color: rgba(46, 125, 50, 0.20);
  color: var(--sl-green);
}

.badge-soft.warning {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.18);
  color: #b54723;
}

.badge-soft.danger {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

.form-control,
.form-select {
  font-size: 0.92rem;
  border-radius: 0.7rem;
  border-color: var(--sl-border);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.14);
}

.portal-footer {
  background:
    radial-gradient(1200px 520px at 10% 30%, rgba(46, 125, 50, 0.16), transparent 55%),
    radial-gradient(1200px 520px at 90% 30%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(11, 15, 22, 0.94));
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer-link:hover {
  color: #fff;
}

.footer-admin-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-admin-link:hover {
  color: #fff;
}

.portal-social {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.portal-social:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Landing sections */
.sl-section {
  padding: 4rem 0;
}
.sl-section.bg-white {
  background: #fff;
}

.sl-section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sl-section-subtitle {
  color: var(--sl-muted);
  max-width: 70ch;
}

.sl-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sl-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sl-shadow);
}

.sl-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.12);
  color: var(--sl-primary);
}

.sl-map-thumb {
  height: 140px;
  border-radius: calc(var(--sl-radius) - 2px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(600px 240px at 15% 15%, rgba(46, 125, 50, 0.18), transparent 55%),
    radial-gradient(600px 240px at 85% 20%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.sl-map-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

.sl-map-pin {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
}

.sl-dark-panel {
  background:
    radial-gradient(1200px 520px at 10% 20%, rgba(46, 125, 50, 0.20), transparent 55%),
    radial-gradient(1200px 520px at 90% 50%, rgba(255, 107, 53, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(11, 15, 22, 0.92));
  color: rgba(255, 255, 255, 0.90);
}

.sl-step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--sl-radius);
  padding: 16px;
  height: 100%;
}

.sl-map-section {
  background: #fff;
}
.sl-map-panel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sl-border);
  box-shadow: var(--sl-shadow-soft);
  background: #fff;
}
.sl-map-canvas {
  height: 420px;
  width: 100%;
}
@media (max-width: 991.98px) {
  .sl-map-canvas {
    height: 360px;
  }
}
.sl-map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.sl-map-overlay-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sl-dark);
}
.sl-map-overlay-sub {
  font-size: 0.72rem;
  color: var(--sl-muted);
}
.sl-map-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 1rem;
}
.sl-map-info-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-primary);
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.sl-map-info-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sl-dark);
}
.sl-map-metrics {
  display: grid;
  gap: 0.65rem;
}
.sl-map-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--sl-border);
  background: #f8fafc;
  font-size: 0.85rem;
}
.sl-map-metric span {
  color: var(--sl-muted);
}
.sl-map-metric strong {
  color: var(--sl-dark);
}
.sl-map-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.sl-map-chip {
  border: 1px solid var(--sl-border);
  background: #fff;
  color: var(--sl-dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}
.sl-map-chip:hover,
.sl-map-chip:focus {
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--sl-primary);
}

.sl-map-marker {
  background: transparent;
  border: none;
}
.sl-map-pulse {
  width: 14px;
  height: 14px;
  display: block;
  position: relative;
  border-radius: 50%;
  background: var(--sl-primary);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.45);
  animation: slPulse 2.4s ease-out infinite;
}
.sl-map-pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.25);
}

@keyframes slPulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.45);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(255, 107, 53, 0.05);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.0);
  }
}

.sl-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sl-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.12);
  color: var(--sl-primary);
  font-size: 1.1rem;
}
.sl-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sl-dark);
}
@media (max-width: 575.98px) {
  .sl-stat-card {
    align-items: flex-start;
  }
}

.sl-newsletter-card {
  background:
    radial-gradient(600px 240px at 15% 20%, rgba(46, 125, 50, 0.24), transparent 60%),
    radial-gradient(600px 240px at 85% 80%, rgba(255, 107, 53, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(11, 15, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--sl-radius) + 6px);
  color: #fff;
  box-shadow: var(--sl-shadow);
}
.sl-newsletter-kicker {
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}
.sl-newsletter-card .form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.sl-newsletter-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.sl-newsletter-card .form-control:focus {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.2);
}

@keyframes slFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-hero-main .hero-content,
.landing-hero-main .hero-search-card {
  animation: slFadeUp 0.7s ease both;
}
.landing-hero-main .hero-search-card {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-main .hero-content,
  .landing-hero-main .hero-search-card {
    animation: none;
  }
}

/* Lifecycle tabs */
#lifecycle-tabs .nav-link {
  border: 1px solid var(--sl-border);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--sl-dark);
  background: #fff;
}
#lifecycle-tabs .nav-link:hover {
  border-color: rgba(255, 107, 53, 0.30);
}
#lifecycle-tabs .nav-link.active {
  background: rgba(255, 107, 53, 0.10);
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--sl-primary);
}
#lifecycle-tabs .nav-link.active .text-muted {
  color: rgba(15, 23, 42, 0.72) !important;
}

/* Accordion */
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.35);
}
.accordion-button:not(.collapsed) {
  color: var(--sl-dark);
  background: rgba(255, 107, 53, 0.08);
}

/* Footer controls */
.portal-footer .form-control,
.portal-footer .form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.portal-footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Select2 (Bootstrap 5 theme) tweaks */
.select2-container--bootstrap-5 .select2-selection {
  border-radius: 0.7rem;
  border-color: var(--sl-border);
  min-height: 40px;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Leaflet in cards */
.portal-map {
  height: 360px;
  border-radius: 14px;
  border: 1px solid var(--sl-border);
  overflow: hidden;
}


/* Landing action cards */
.sl-action-card {
  display: flex;
  flex-direction: column;
}



/* Landing stepper */
.sl-stepper {
  position: relative;
}
@media (min-width: 992px) {
  .sl-stepper::before {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    top: 28px;
    height: 2px;
    background: rgba(226, 232, 240, 0.9);
  }
}
.sl-stepper-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.22);
  color: var(--sl-primary);
  flex: 0 0 34px;
}
.sl-stepper-card--primary {
  border-color: rgba(255, 107, 53, 0.40);
  box-shadow: var(--sl-shadow);
  background:
    radial-gradient(420px 220px at 15% 10%, rgba(255, 107, 53, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}
