/* Vico — custom styles (Bootstrap 5 base) */

:root {
  --nl-primary: #2563eb;
  --nl-indigo: #6366f1;
  --nl-indigo-deep: #4f46e5;
  --nl-accent: #7c3aed;
  --nl-cyan: #06b6d4;
  --nl-teal: #0891b2;
  --nl-top-navy: #051630;
  --nl-dark: #0f172a;
  --nl-surface: #ffffff;
  --nl-surface-muted: #f8fafc;
  --nl-page-bg: #f1f5f9;
  --nl-border: rgba(15, 23, 42, 0.08);
  --nl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nl-display: "Outfit", system-ui, sans-serif;
  --nl-radius-lg: 1rem;
  --nl-radius-xl: 1.25rem;
  --nl-radius-pill: 999px;
  --nl-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nl-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --nl-shadow-card-hover: 0 20px 56px rgba(15, 23, 42, 0.12);
  --nl-gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a78bfa 100%);
  --nl-gradient-cta: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --nl-accent-gradient: linear-gradient(90deg, #2563eb, #7c3aed, #0891b2);
  --nl-active-nav-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(99, 102, 241, 0.08) 100%);
  --nl-active-nav-color: #1d4ed8;
  --nl-page-bg-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(124, 58, 237, 0.05), transparent 50%);
}

html {
  scroll-behavior: smooth;
  background-color: #e8edf3;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.site-body {
  font-family: var(--nl-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --site-page-gutter: 1.5rem;
  padding-inline: var(--site-page-gutter);
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-page-wrap {
  min-width: 0;
  width: 100%;
  flex: 1 0 auto;
}

.brand-gradient {
  background: var(--nl-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll progress circle (main.js) */
.scroll-progress-circle {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1030;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--nl-primary);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.2s ease;
}

.scroll-progress-circle.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-progress-circle:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

.scroll-progress-circle:focus-visible {
  outline: 2px solid var(--nl-primary);
  outline-offset: 3px;
}

.scroll-progress-circle__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-progress-circle__track {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 3;
}

.scroll-progress-circle__bar {
  fill: none;
  stroke: var(--nl-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear;
}

.scroll-progress-circle__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .scroll-progress-circle {
  background: #141c2f;
  color: #93c5fd;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .scroll-progress-circle__track {
  stroke: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .scroll-progress-circle__bar {
  stroke: #60a5fa;
}

@media (min-width: 992px) {
  .scroll-progress-circle {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #312e81 100%);
}

.hero-shapes::before,
.hero-shapes::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-shapes::before {
  width: 320px;
  height: 320px;
  background: var(--nl-primary);
  top: -80px;
  right: -40px;
}

.hero-shapes::after {
  width: 280px;
  height: 280px;
  background: var(--nl-accent);
  bottom: -100px;
  left: -60px;
}

.py-lg-6 {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
  }

  .mb-lg-6 {
    margin-bottom: 6rem !important;
  }
}

.mb-lg-6 {
  margin-bottom: 4.5rem !important;
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12) !important;
}

.service-icon {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.plan-card-hover,
.blog-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card-hover:hover,
.blog-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12) !important;
}

.banner-strip {
  background: var(--nl-gradient-cta);
}

.bg-gradient-accent {
  background: var(--nl-gradient-cta);
}

.object-fit-cover {
  object-fit: cover;
}

.page-hero {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ——— Inner public pages (shared with home fonts via header) ——— */
.page-app {
  font-family: var(--nl-font);
  background-color: var(--nl-page-bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(124, 58, 237, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--nl-page-bg) 35%, #eef2f7 100%);
  color: #0f172a;
}

.page-app h1,
.page-app .display-5,
.page-app .display-6 {
  font-family: var(--nl-display);
  letter-spacing: -0.03em;
}

.page-app .public-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nl-border);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07);
}

.page-app .navbar-brand {
  font-family: var(--nl-display);
  letter-spacing: -0.02em;
}

.navbar-brand--logo {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 12.5rem);
}

.navbar-brand__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2.35rem;
  object-fit: contain;
}

.page-hero--app {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.page-hero--app::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}

.page-hero--app::after {
  content: "";
  position: absolute;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 50%;
  top: -30%;
  right: -12%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-hero--app .container {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #2563eb;
  margin-bottom: 0.4rem;
}

.page-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
}

.page-app .page-hero__eyebrow a {
  color: inherit;
}

@media (min-width: 992px) {
  .page-hero--app {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

.page-hero--app .display-5,
.page-hero--app .page-hero__title--compact {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero--app .lead,
.page-hero--app .page-hero__lead--compact {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 32rem;
}

.page-hero__eyebrow--on-dark {
  color: #93c5fd;
}

.page-hero__eyebrow--on-dark::before {
  background: linear-gradient(135deg, #38bdf8, #a5b4fc);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.page-app .page-hero--app .lead {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: #64748b !important;
  line-height: 1.55;
  font-size: 1rem;
}

.page-app .nl-section {
  position: relative;
}

.page-app .card.border-0.shadow-sm,
.page-app .nl-surface {
  border-radius: var(--nl-radius-lg) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: var(--nl-shadow-card) !important;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-app .plan-card-hover:hover,
.page-app .blog-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-card-hover) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}

.page-app .nl-plan-card .card-body {
  position: relative;
  overflow: visible;
}

.nl-plan-meta {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.nl-plan-price {
  font-family: var(--nl-display);
  letter-spacing: -0.03em;
}

.page-app .nl-dark-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #172554 100%);
  color: #fff;
}

.page-app .nl-dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(99, 102, 241, 0.2), transparent 55%);
  pointer-events: none;
}

.page-app .nl-dark-band .container {
  position: relative;
  z-index: 1;
}

.page-app .nl-stat-tile {
  border-radius: var(--nl-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.page-app .nl-contact-card {
  border-radius: var(--nl-radius-lg);
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--nl-shadow-card);
  height: 100%;
}

.page-app .nl-contact-aside {
  position: relative;
}

@media (min-width: 992px) {
  .page-app .nl-contact-aside {
    position: sticky;
    top: 6.75rem;
  }
}

.page-app .nl-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-app .nl-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-right: 0.25rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.page-app .nl-contact-card--with-icon {
  position: relative;
  padding-left: 3.25rem;
}

.page-app .nl-contact-card__icon {
  position: absolute;
  left: 1.05rem;
  top: 1.05rem;
  width: 34px;
  height: 34px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(102, 16, 242, 0.1));
  color: #1d4ed8;
}

.nl-contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

/* Plan modal: contact-style phone rows (works on page-home where .page-app is absent) */
.plan-get-started-modal .nl-contact-card--modal {
  border-radius: var(--nl-radius-lg);
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--nl-shadow-card);
}

.nl-aside-title {
  font-family: var(--nl-display);
  letter-spacing: -0.02em;
}

.page-app .nl-form-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--nl-radius-xl);
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--nl-shadow-card);
}

@media (min-width: 992px) {
  .page-app .nl-form-panel {
    padding: 2rem 2.25rem;
  }
}

.page-app .form-control,
.page-app .form-select {
  border-radius: 0.65rem;
  border-color: rgba(15, 23, 42, 0.12);
  padding: 0.6rem 0.85rem;
}

.page-app .form-control:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.page-app .btn-primary {
  font-weight: 600;
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.25);
}

.page-app .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.32);
}

.page-app .pagination .page-link {
  border-radius: var(--nl-radius-pill);
  margin: 0 0.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-weight: 500;
  transition:
    background 0.2s var(--nl-ease),
    border-color 0.2s var(--nl-ease),
    color 0.2s var(--nl-ease),
    transform 0.2s var(--nl-ease);
}

.page-app .pagination .page-link:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

.page-app .pagination .page-item.active .page-link {
  background: var(--nl-gradient-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 1rem;
}

.page-back:hover {
  color: #1d4ed8;
}

.nl-prose-card {
  border-radius: var(--nl-radius-xl);
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--nl-shadow-card);
  transition:
    transform 0.3s var(--nl-ease),
    box-shadow 0.3s var(--nl-ease),
    border-color 0.3s var(--nl-ease);
}

.nl-prose-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.14);
}

@media (min-width: 768px) {
  .nl-prose-card {
    padding: 2.5rem 2.75rem;
  }
}

.nl-prose,
.page-app .cms-page-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
}

.nl-prose p,
.page-app .cms-page-body p {
  margin-bottom: 1.1rem;
}

/* Modern media cards (inner pages — work, news) */
.nl-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--nl-radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  box-shadow: var(--nl-shadow-card);
  overflow: hidden;
  transition:
    transform 0.3s var(--nl-ease),
    box-shadow 0.3s var(--nl-ease),
    border-color 0.3s var(--nl-ease);
}

.nl-media-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.18);
}

.nl-media-card__accent {
  display: none;
}

.nl-media-card__thumb {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.nl-media-card__thumb img {
  transition: transform 0.45s var(--nl-ease);
}

.nl-media-card:hover .nl-media-card__thumb img {
  transform: scale(1.06);
}

.nl-media-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nl-media-card__title {
  font-family: var(--nl-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--nl-dark);
  margin-bottom: 0.35rem;
  transition: color 0.2s var(--nl-ease);
}

.nl-media-card:hover .nl-media-card__title {
  color: var(--nl-primary);
}

/* ——— News article (single post) ——— */
.nl-article-section {
  position: relative;
  overflow: hidden;
}

.nl-article-section__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(124, 58, 237, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(8, 145, 178, 0.06), transparent 45%);
  pointer-events: none;
}

.nl-article {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.nl-article__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

.nl-article__crumb-link {
  font-weight: 600;
  color: var(--nl-primary);
  text-decoration: none;
}

.nl-article__crumb-link:hover {
  color: #1d4ed8;
}

.nl-article__crumb-sep {
  color: #94a3b8;
}

.nl-article__crumb-current {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 20rem);
}

.nl-article__hero {
  margin-bottom: 1.5rem;
}

.nl-article__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nl-article__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--nl-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.nl-article__title {
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nl-article__deck {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--nl-primary), var(--nl-accent)) 1;
}

.nl-article__byline {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0;
}

.nl-article__byline span {
  font-weight: 600;
  color: #64748b;
}

.nl-article__card {
  position: relative;
  border-radius: var(--nl-radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: var(--nl-shadow-card);
  overflow: hidden;
}

.nl-article__cover {
  padding: 1.5rem 1.5rem 0;
}

@media (min-width: 768px) {
  .nl-article__cover {
    padding: 2rem 2.25rem 0;
  }
}

.nl-article__cover-frame {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nl-article__cover-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.nl-article__body {
  padding: 1.75rem 1.5rem;
}

.nl-article__cover + .nl-article__body {
  padding-top: 1.35rem;
}

@media (min-width: 768px) {
  .nl-article__body {
    padding: 2rem 2.25rem;
  }

  .nl-article__cover + .nl-article__body {
    padding-top: 1.5rem;
  }
}

.nl-prose--article {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.nl-prose--article p:first-child {
  font-size: 1.125rem;
  color: #334155;
}

.nl-article__footer {
  padding: 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .nl-article__footer {
    padding: 0 2.25rem 2rem;
  }
}

.nl-article__footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.nl-article__footer-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nl-primary);
  margin-bottom: 0.2rem;
}

.nl-article__footer-text {
  font-size: 0.9rem;
  color: #64748b;
}

.nl-article-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.nl-article-related__title {
  font-family: var(--nl-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.nl-article-related__card {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: var(--nl-shadow-card);
  overflow: hidden;
  transition: transform 0.3s var(--nl-ease), box-shadow 0.3s var(--nl-ease);
}

.nl-article-related__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-card-hover);
}

.nl-article-related__thumb {
  background: #f1f5f9;
  overflow: hidden;
}

.nl-article-related__thumb img {
  transition: transform 0.45s var(--nl-ease);
}

.nl-article-related__card:hover .nl-article-related__thumb img {
  transform: scale(1.05);
}

.nl-article-related__body {
  padding: 1rem 1.1rem 1.15rem;
}

.nl-article-related__date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.nl-article-related__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.nl-article-related__excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="dark"] .nl-article__title {
  background: linear-gradient(120deg, #f8fafc 0%, #93c5fd 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .nl-article__card,
html[data-theme="dark"] .nl-article-related__card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .nl-article__deck,
html[data-theme="dark"] .nl-prose--article p:first-child {
  color: #cbd5e1;
}

html[data-theme="dark"] .nl-article__meta-chip {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .nl-article-related__title,
html[data-theme="dark"] .nl-article-related__name {
  color: #f1f5f9;
}

html[data-theme="dark"] .nl-article-related {
  border-top-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .nl-article__footer-inner {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .nl-article__footer-text {
  color: #94a3b8;
}

html[data-theme="dark"] .nl-article__cover-frame {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .nl-article-related__thumb img,
  .nl-article-related__card {
    transition: none;
  }

  .nl-article-related__card:hover,
  .nl-article-related__card:hover .nl-article-related__thumb img {
    transform: none;
  }
}

/* ——— About page ——— */
.page-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 30%, rgba(124, 58, 237, 0.08), transparent 50%);
  pointer-events: none;
}

.nl-about-section {
  position: relative;
  overflow: hidden;
}

.nl-about-section__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(124, 58, 237, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(8, 145, 178, 0.05), transparent 45%);
  pointer-events: none;
}

.nl-about-story {
  position: relative;
  border-radius: var(--nl-radius-xl);
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-card);
}

@media (min-width: 768px) {
  .nl-about-story {
    padding: 2.25rem 2.5rem;
  }
}

.nl-about-story__title {
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.nl-about-story__prose {
  padding-left: 1rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--nl-primary), var(--nl-accent)) 1;
}

.nl-about-pillar {
  position: relative;
  border-radius: var(--nl-radius-xl);
  padding: 1.35rem 1.5rem;
  overflow: hidden;
}

.nl-about-pillar--mission {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28);
}

.nl-about-pillar--mission .nl-about-pillar__glow {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  top: -4rem;
  right: -3rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.nl-about-pillar--vision {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-card);
}

.nl-about-pillar__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.nl-about-pillar__label--muted {
  color: var(--nl-primary);
  opacity: 1;
}

.nl-about-pillar__text {
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.nl-about-pillar__text--dark {
  color: #475569;
}

.nl-about-values__title {
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  color: #0f172a;
}

.nl-about-value-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.35rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-card);
  transition:
    transform 0.3s var(--nl-ease),
    box-shadow 0.3s var(--nl-ease),
    border-color 0.3s var(--nl-ease);
}

.nl-about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.16);
}

.nl-about-value-card__num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--nl-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(37, 99, 235, 0.1);
}

.nl-about-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  margin-bottom: 0.85rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nl-primary);
}

.nl-about-value-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.nl-about-value-card__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

.nl-about-team {
  position: relative;
  background: var(--home-surface, #f8fafc);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nl-about-team__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 60%, rgba(124, 58, 237, 0.06), transparent 50%);
  pointer-events: none;
}

.nl-about-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--nl-radius-xl);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-card);
  padding: 0 0 0.25rem;
  transition:
    transform 0.3s var(--nl-ease),
    box-shadow 0.3s var(--nl-ease),
    border-color 0.3s var(--nl-ease);
}

.nl-about-team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.16);
}

.nl-about-team-card__avatar {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0.85rem;
}

.nl-about-team-card__ring {
  position: relative;
  width: 9rem;
  height: 9rem;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s var(--nl-ease), transform 0.3s var(--nl-ease), border-color 0.3s var(--nl-ease);
}

.nl-about-team-card:hover .nl-about-team-card__ring {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  transform: scale(1.03);
}

.nl-about-team-card__ring > .nl-avatar {
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: none;
  border-radius: 50%;
}

.nl-about-team-card__ring .nl-avatar--photo {
  object-fit: cover;
  object-position: center;
}

.nl-about-team-card__ring .nl-avatar--default {
  background: #f1f5f9;
}

.nl-about-team-card__ring .nl-avatar__icon {
  width: 52%;
  height: 52%;
}

.nl-about-team-card__body {
  padding: 0 1.25rem 1.35rem;
  width: 100%;
}

.nl-about-team-card__name {
  font-family: var(--nl-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.nl-about-team-card__role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nl-primary);
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.nl-about-team-card__bio {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dark"] .nl-about-story,
html[data-theme="dark"] .nl-about-pillar--vision,
html[data-theme="dark"] .nl-about-value-card,
html[data-theme="dark"] .nl-about-team-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .nl-about-story__title,
html[data-theme="dark"] .nl-about-values__title,
html[data-theme="dark"] .nl-about-value-card__name,
html[data-theme="dark"] .nl-about-team-card__name {
  color: #f1f5f9;
}

html[data-theme="dark"] .nl-about-pillar__text--dark,
html[data-theme="dark"] .nl-about-value-card__desc,
html[data-theme="dark"] .nl-about-team-card__bio {
  color: #94a3b8;
}

html[data-theme="dark"] .nl-about-team {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.1);
}

html[data-theme="dark"] .nl-about-team-card__ring {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .nl-about-team-card__ring .nl-avatar--default {
  background: #0f172a;
}

html[data-theme="dark"] .nl-avatar--photo {
  border-color: rgba(148, 163, 184, 0.22);
  background: #0f172a;
}

html[data-theme="dark"] .nl-avatar--default {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .nl-about-value-card,
  .nl-about-team-card,
  .nl-about-team-card__ring {
    transition: none;
  }

  .nl-about-value-card:hover,
  .nl-about-team-card:hover,
  .nl-about-team-card:hover .nl-about-team-card__ring {
    transform: none;
  }
}

/* ——— About page CTA ——— */
.nl-about-cta__panel {
  border-radius: var(--nl-radius-xl);
  padding: 1.75rem 1.5rem;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--nl-shadow-card);
}

.nl-about-cta__panel--home {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.25rem 1.25rem;
}

.nl-about-cta__panel--home .nl-about-cta__title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.12;
}

.nl-about-cta__panel--home .nl-about-cta__lead {
  font-size: 0.925rem;
  line-height: 1.55;
}

.nl-about-cta__panel--home .home-about-text--compact {
  -webkit-line-clamp: 2;
}

.nl-about-cta__panel--home .home-about-visual {
  min-height: 9rem;
  padding: 0.15rem 0;
}

.nl-about-cta__panel--home .home-about-visual__card {
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 1.1rem 1rem;
  max-width: 18rem;
}

.nl-about-cta__panel--home .home-about-visual__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.5rem;
}

.nl-about-cta__panel--home .home-about-visual__icon svg {
  width: 20px;
  height: 20px;
}

.nl-about-cta__panel--home .home-about-visual__text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.nl-about-cta__panel--home .btn-home-primary {
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
}

.nl-about-cta__panel--home-cta {
  padding: 1.35rem 1.25rem;
}

.nl-about-cta__panel--home-cta .nl-about-cta__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.12;
}

.nl-about-cta__panel--home-cta .nl-about-cta__lead {
  font-size: 0.925rem;
  line-height: 1.55;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .nl-about-cta__panel--home-cta {
    padding: 1.75rem 2rem;
  }
}

@media (min-width: 768px) {
  .nl-about-cta__panel {
    padding: 2.5rem 2.75rem;
  }

  .nl-about-cta__panel--home {
    padding: 1.65rem 2rem;
  }
}

.nl-about-cta__title {
  font-family: var(--nl-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.nl-about-cta__lead {
  font-size: 0.975rem;
  line-height: 1.6;
  max-width: 34rem;
}

.nl-about-cta__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.nl-about-cta__chip svg {
  flex-shrink: 0;
  color: var(--nl-primary);
}

.nl-about-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nl-about-cta__action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nl-about-cta__action:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.nl-about-cta__action--primary {
  border-color: rgba(37, 99, 235, 0.18);
}

.nl-about-cta__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.nl-about-cta__action-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.nl-about-cta__action-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.nl-about-cta__action-hint {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

.nl-about-cta__action-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2563eb;
  transition: transform 0.22s ease;
}

.nl-about-cta__action:hover .nl-about-cta__action-arrow {
  transform: translateX(3px);
}

html[data-theme="dark"] .nl-about-cta__panel {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .nl-about-cta__panel--home .home-about-visual__card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .nl-about-cta__title,
html[data-theme="dark"] .nl-about-cta__action-label {
  color: #f1f5f9;
}

html[data-theme="dark"] .nl-about-cta__chip,
html[data-theme="dark"] .nl-about-cta__action {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .nl-about-cta__action:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .nl-about-cta__action,
  .nl-about-cta__action-arrow {
    transition: none;
  }

  .nl-about-cta__action:hover,
  .nl-about-cta__action:hover .nl-about-cta__action-arrow {
    transform: none;
  }
}

/* ——— Contact page ——— */
.nl-contact-section {
  position: relative;
  overflow: hidden;
}

.nl-contact-section__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 50% at 20% 0%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(124, 58, 237, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(8, 145, 178, 0.05), transparent 45%);
  pointer-events: none;
}

.nl-contact-intro__title {
  font-family: var(--nl-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.nl-contact-intro__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 28rem;
}

.page-app .nl-contact-card--modern {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-app .nl-contact-card--modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
}

.nl-contact-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

a.nl-contact-card__value:hover {
  color: var(--nl-primary);
}

.nl-contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nl-contact-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nl-contact-social__link:hover {
  color: var(--nl-primary);
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

.nl-contact-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-contact-trust__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.07);
  width: fit-content;
}

.nl-contact-trust__chip svg {
  flex-shrink: 0;
  color: var(--nl-primary);
}

.nl-contact-form__title {
  font-family: var(--nl-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.nl-contact-alert {
  border-radius: var(--nl-radius-lg);
  border: none;
  box-shadow: var(--nl-shadow-card);
}

.nl-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[data-theme="dark"] .nl-contact-intro__title,
html[data-theme="dark"] .nl-contact-form__title,
html[data-theme="dark"] .nl-contact-card__value {
  color: #f1f5f9;
}

html[data-theme="dark"] a.nl-contact-card__value:hover {
  color: #93c5fd;
}

html[data-theme="dark"] .nl-contact-social__link,
html[data-theme="dark"] .nl-contact-trust__chip {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
}

html[data-theme="dark"] .nl-contact-social__link:hover {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .page-app .nl-contact-card--modern,
  .nl-contact-social__link {
    transition: none;
  }

  .page-app .nl-contact-card--modern:hover,
  .nl-contact-social__link:hover {
    transform: none;
  }
}

html[data-theme="dark"] .nl-media-card {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .nl-media-card__thumb {
  background: #0f172a;
}

html[data-theme="dark"] .nl-media-card__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .nl-media-card:hover .nl-media-card__title {
  color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
  .nl-media-card:hover {
    transform: none;
  }

  .nl-media-card:hover .nl-media-card__thumb img {
    transform: none;
  }
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(37, 99, 235, 0.15), transparent 65%);
  pointer-events: none;
}

.site-footer .container,
.site-footer .container-fluid {
  position: relative;
  z-index: 1;
}

.site-footer .border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.site-footer--centered .site-footer__heading::after {
  margin-left: auto;
  margin-right: auto;
}

.site-footer--centered .site-footer__newsletter {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer--centered .site-footer__link {
  justify-content: center;
}

.site-footer--centered .list-unstyled li.d-flex {
  justify-content: center;
}

.site-footer--centered .site-footer__legal-line {
  padding-left: 0;
  padding-right: 0;
}

.site-footer__nav-col {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .site-footer__nav-col .site-footer__link {
    font-size: 0.8125rem;
  }
}

.site-footer__legal-line {
  white-space: nowrap;
  font-size: clamp(0.625rem, 2.85vw, 0.875rem);
  letter-spacing: -0.01em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-footer__legal-line::-webkit-scrollbar {
  display: none;
}

.site-footer__mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.95), rgba(99, 102, 241, 0.9) 50%, rgba(124, 58, 237, 0.95));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: var(--nl-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  overflow: hidden;
}

.site-footer__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

/* When a real logo is present, remove the colored tile. */
.site-footer__mark--logo {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.85rem;
  background: transparent;
  box-shadow: none;
}

.site-footer__surface {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(1200px 380px at 15% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(900px 320px at 92% 10%, rgba(124, 58, 237, 0.16), transparent 56%),
    rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.site-footer__pill {
  border-radius: 999px;
}

.site-footer__panel {
  position: relative;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 10, 28, 0.0);
}

.site-footer__heading {
  font-family: var(--nl-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  position: relative;
}

.site-footer__heading::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0));
  border-radius: 999px;
}

.site-footer__bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nl-primary), var(--nl-indigo));
  flex: 0 0 auto;
}

.site-footer__newsletter .form-control {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer__newsletter .btn {
  border: 0;
}

.site-footer__social {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: rgba(226, 232, 240, 0.95);
  font-weight: 800;
  font-size: 0.75rem;
}

.site-footer__social:hover {
  background: rgba(37, 99, 235, 0.32);
  color: #fff;
}

.site-footer__social.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer__link::before {
  content: "→";
  color: rgba(96, 165, 250, 0.95);
  font-weight: 800;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}

@media (min-width: 992px) {
  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__sep {
  border-color: rgba(255, 255, 255, 0.10) !important;
  opacity: 1;
}

.site-footer__admin-btn {
  border-radius: 999px;
}

.site-footer a.text-white-50:hover,
.site-footer a.link-light:hover {
  color: #fff !important;
}

.site-footer .text-info {
  color: #7dd3fc !important;
}

/* ——— Admin shell ——— */
.admin-body {
  font-family: var(--nl-font);
  background: #f1f5f9;
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(124, 58, 237, 0.05), transparent 50%);
}

/* Full-bleed admin layout on phones/tablets (no side gutter from container-fluid). */
@media (max-width: 991.98px) {
  .admin-body > .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
}

.admin-body .admin-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  position: relative;
  overflow: visible;
}

.admin-body .admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(124, 58, 237, 0.06), transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

@media (min-width: 992px) {
  .admin-body .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .admin-body .admin-sidebar .admin-sidebar__inner {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
  }
}

.admin-body .admin-content {
  background: transparent;
}

.admin-body .card.border-0.shadow-sm {
  border-radius: var(--nl-radius-lg) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: var(--nl-shadow-card) !important;
}

.admin-body .card-header.bg-white {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  font-family: var(--nl-display);
  letter-spacing: -0.01em;
}

.admin-body h1.h3 {
  font-family: var(--nl-display);
  letter-spacing: -0.02em;
}

.admin-body .form-control,
.admin-body .form-select {
  border-radius: 0.6rem;
  border-color: rgba(15, 23, 42, 0.12);
}

.admin-body .form-control:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.admin-body .btn-primary {
  font-weight: 600;
  border-radius: 0.65rem;
}

/* Admin alerts (flash messages) */
.admin-body .admin-alert {
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 0.9rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.admin-body .admin-alert .btn-close {
  margin-left: auto;
}

.admin-body .admin-alert__icon {
  width: 38px;
  height: 38px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.admin-body .admin-alert__body {
  min-width: 0;
  font-weight: 600;
}

.admin-body .alert-success.admin-alert {
  background: rgba(16, 185, 129, 0.10) !important;
  color: #065f46 !important;
}

.admin-body .alert-success.admin-alert .admin-alert__icon {
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
}

.admin-body .alert-danger.admin-alert {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #7f1d1d !important;
}

.admin-body .alert-danger.admin-alert .admin-alert__icon {
  background: rgba(239, 68, 68, 0.16);
  color: #dc2626;
}

/* Admin UI modals (confirm / success / warning) */
.admin-body .admin-ui-modal .modal-content {
  border-radius: 1rem;
}
/* Stack above in-page modals (e.g. news compose) so success is always visible */
.admin-body #adminSuccessModal,
.admin-body #adminInfoWarningModal {
  z-index: 1085;
}
.admin-body .admin-ui-modal__badge {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-body .admin-ui-modal__badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.admin-body .admin-ui-modal__badge--warning {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}
.admin-body .admin-ui-modal__badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.admin-body .admin-ui-modal--success .modal-body {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
}
.admin-body .admin-ui-modal--info-warning .modal-body {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%);
}
.admin-body .admin-ui-modal--danger .modal-body {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 55%);
}
.admin-body .admin-ui-modal--caution .modal-body {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%);
}

/* ——— Admin auth (login / reset) ——— */
.admin-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  font-family: var(--nl-font);
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.admin-auth-page--modern {
  overflow-x: hidden;
  overflow-y: auto;
  align-items: stretch;
  justify-content: flex-start;
}

/* Center auth card on small screens — modern layout scrolls instead of clipping. */
@media (max-width: 575.98px) {
  .admin-auth-page:not(.admin-auth-page--modern) {
    padding: 0;
    justify-content: center;
  }

  .admin-auth-page:not(.admin-auth-page--modern) > .container {
    width: 100%;
  }
}

.admin-auth-page > .container {
  position: relative;
  z-index: 1;
}

.admin-auth-page > .container::after {
  display: none;
}

.admin-auth-page > .container > .row {
  position: relative;
  z-index: 1;
}

.admin-auth-page::before {
  display: none;
}

.admin-auth-page::after {
  display: none;
}

.admin-auth-card {
  position: relative;
  z-index: 1;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 22px 50px -14px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  overflow: hidden;
}

.admin-auth-card::before {
  display: none;
}

.admin-auth-card .card-body {
  padding: 2rem 1.75rem;
}

@media (min-width: 576px) {
  .admin-auth-card .card-body {
    padding: 2.25rem 2rem;
  }
}

/* Keep the login card visually balanced. */
.admin-auth-card {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.admin-auth-card h1 {
  font-family: var(--nl-display);
  letter-spacing: -0.02em;
}

.admin-auth-brand {
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #2563eb;
  text-align: center;
  margin-bottom: 0.25rem;
}

.admin-auth-page .container > p a {
  color: rgba(15, 23, 42, 0.65);
  font-weight: 500;
}

.admin-auth-page .container > p a:hover {
  color: rgba(15, 23, 42, 0.85);
}

.admin-auth-page .admin-auth-input-control {
  border-radius: 0.7rem;
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-auth-page .admin-auth-input-control:focus {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
  background: #fff;
}

.admin-auth-page .alert {
  border-radius: 0.7rem;
  border: none;
}

.admin-auth-card .alert-danger {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
}

.admin-auth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.admin-auth-submit.btn-primary {
  border: none;
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-auth-submit.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.admin-auth-submit.btn-primary:active {
  transform: translateY(0);
  background: #1e40af;
}

.admin-auth-card__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.admin-auth-card__hint {
  line-height: 1.45;
}

.admin-auth-logo__letters {
  position: relative;
  z-index: 2;
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.admin-auth-intro__eyebrow,
.admin-auth-intro__subhead {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.admin-auth-intro__subhead {
  color: #64748b;
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
}

.admin-auth-intro__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 1rem;
}

.admin-auth-intro__brand {
  color: #2563eb;
}

.admin-auth-intro__lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #475569;
  max-width: 26rem;
  margin-bottom: 0;
}

.admin-auth-intro__row {
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-auth-intro__check {
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(37, 99, 235, 0.1);
  color: #4338ca;
}

.admin-auth-intro__row-text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
}

.admin-auth-intro__back {
  color: #64748b;
  font-weight: 600;
  transition: color 0.15s ease;
}

.admin-auth-intro__back:hover {
  color: #2563eb;
}

.admin-auth-mobile-back {
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
}

.admin-auth-link {
  color: #2563eb;
  font-weight: 600;
}

.admin-auth-link:hover {
  color: #1d4ed8;
  text-decoration: underline !important;
}

.admin-auth-mobile-back:hover {
  color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
  .admin-auth-submit.btn-primary:hover,
  .admin-auth-submit.btn-primary:active {
    transform: none;
  }
}

/* ——— Admin: Messages (inbox) ——— */
.admin-messages-page__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.35rem;
}
.admin-messages-page__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.admin-messages-page__lead {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 36rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.admin-msg-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.04);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-msg-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.07);
}

.admin-msg-stat::before {
  display: none;
}
.admin-msg-stat__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.admin-msg-stat__value {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}
.admin-msg-stat__hint {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.3;
}

.admin-msg-card {
  border-radius: 1.05rem !important;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 44px -14px rgba(15, 23, 42, 0.1) !important;
}
.admin-msg-table-wrap {
  max-height: min(70vh, 640px);
  overflow: auto;
}
.admin-msg-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  white-space: nowrap;
}
.admin-msg-table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}
.admin-msg-table__th-num {
  width: 3.25rem;
}
.admin-msg-table__th-actions {
  min-width: 15rem;
}
.admin-msg-row--unread {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 0) 55%);
}
.admin-msg-row--unread:hover {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.55) 0%, rgba(248, 250, 252, 0.9) 60%);
}

.admin-msg-from-btn {
  max-width: 100%;
  border: 0;
  line-height: 1.35;
}

.admin-msg-from-btn:hover .admin-msg-from-btn__name,
.admin-msg-from-btn:focus-visible .admin-msg-from-btn__name {
  color: #4338ca !important;
}

.admin-message-modal__contact {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-message-modal__contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.admin-message-modal .modal-content {
  border-radius: 1.1rem;
  overflow: hidden;
}
.admin-message-modal__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}
.admin-message-modal__body {
  max-height: min(50vh, 360px);
  overflow: auto;
}
.admin-message-modal__pre {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1e293b;
}
.contact-message-view__body {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-message-reply-preview__block {
  user-select: none;
}
.admin-message-reply-preview__block p:last-child {
  margin-bottom: 0;
}
.message-view__section + .message-view__section {
  margin-top: 1.5rem;
}
.message-view__heading {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.message-view__body {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.125rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}
.message-view__body--reply {
  background: #f8fafc;
  color: #0f172a;
}

/* Login card details (modern glass + icon fields) */
.admin-auth-logo {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.95), rgba(99, 102, 241, 0.9) 50%, rgba(124, 58, 237, 0.95));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.admin-auth-logo::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 210deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.0));
  opacity: 0.55;
  transform: rotate(18deg);
}

.admin-auth-logo__dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
  position: relative;
  z-index: 1;
}

.admin-auth-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.admin-auth-logo--image {
  width: auto;
  min-width: 3.1rem;
  max-width: 11rem;
  height: 3.25rem;
  background: transparent;
  box-shadow: none;
}

.admin-auth-logo--image::after {
  display: none;
}

.admin-auth-logo--image .admin-auth-logo__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 3.25rem;
  padding: 0;
}

.admin-auth-intro__logo {
  display: flex;
  align-items: center;
}

.admin-auth-intro__logo-img {
  display: block;
  max-width: min(100%, 12rem);
  max-height: 3.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.2));
}

.admin-auth-field {
  position: relative;
}

.admin-auth-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 23, 42, 0.55);
  pointer-events: none;
}

.admin-auth-input {
  padding-left: 2.65rem;
  background: rgba(248, 250, 252, 0.95);
}

.admin-auth-field--password .admin-auth-input {
  padding-right: 2.75rem;
}

.admin-auth-password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.55);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
}

.admin-auth-password-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.72);
}

.admin-auth-password-toggle .admin-auth-eye--closed {
  display: none;
}

.admin-auth-password-toggle[aria-pressed="true"] .admin-auth-eye--open {
  display: none;
}

.admin-auth-password-toggle[aria-pressed="true"] .admin-auth-eye--closed {
  display: inline;
}

.admin-auth-btn {
  border: 0;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
}

.admin-auth-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.28);
}

.admin-auth-btn:active {
  filter: brightness(0.98);
}

/* Scroll-in animation (class toggled by main.js) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.08s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.16s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.24s;
}

.animate-on-scroll--fade {
  transform: none;
}

.animate-on-scroll--fade.visible {
  transform: none;
}

/* Admin layout & sidebar */
.admin-sidebar {
  min-height: 100vh;
  padding: 0;
  background: #ffffff;
}

.admin-sidebar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 0.9rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

.admin-sidebar__inner::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar__inner::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 99px;
}

@media (min-width: 1200px) {
  .admin-sidebar__inner {
    padding: 1.5rem 1.1rem 1.75rem;
  }
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0f172a;
  padding: 0.4rem 0.5rem;
  margin-bottom: 1.35rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease;
  position: sticky;
  top: 0.35rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-sidebar__brand:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.admin-sidebar__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.admin-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.admin-sidebar__title {
  font-family: var(--nl-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-sidebar__subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
  letter-spacing: 0.06em;
}

.admin-sidebar__nav {
  flex: 1;
}

.admin-sidebar__section {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15, 23, 42, 0.45);
  margin: 1.15rem 0 0.45rem 0.45rem;
}

.admin-sidebar__section-btn {
  width: calc(100% - 0.9rem);
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.admin-sidebar__section-btn:hover {
  color: rgba(15, 23, 42, 0.70);
}

.admin-sidebar__section-caret {
  opacity: 0.65;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.admin-sidebar__section-btn[aria-expanded="false"] .admin-sidebar__section-caret {
  transform: rotate(-90deg);
  opacity: 0.45;
}

.admin-sidebar__group[hidden] {
  display: none !important;
}

.admin-sidebar__sublist {
  max-height: 240px;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-sidebar__sublist::-webkit-scrollbar {
  width: 8px;
}

.admin-sidebar__sublist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.admin-sidebar__sublist::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar__section:first-of-type {
  margin-top: 0;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.62rem;
  margin-bottom: 0.12rem;
  border-radius: 0.6rem;
  color: rgba(15, 23, 42, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.admin-sidebar__link-text {
  flex: 1;
  min-width: 0;
}

.admin-sidebar__unread {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.admin-sidebar__link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

.admin-sidebar__link.active {
  color: #0f172a;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.04));
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: inset 3px 0 0 #3b82f6;
}

.admin-sidebar__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  color: rgba(15, 23, 42, 0.55);
  transition: color 0.15s ease;
}

.admin-sidebar__link:hover .admin-sidebar__icon,
.admin-sidebar__link.active .admin-sidebar__icon {
  color: rgba(37, 99, 235, 0.95);
}

.admin-sidebar__link.active .admin-sidebar__icon {
  color: #2563eb;
}

.admin-sidebar__footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.admin-sidebar__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 22%, rgba(255, 255, 255, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-bottom: 0.75rem;
}

.admin-sidebar__section--footer {
  margin-top: 0;
  margin-left: 0.45rem;
}

.admin-sidebar__footer-sep {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  margin: 0.85rem 0 0.65rem 0;
  opacity: 1;
}

/* Admin: terminal / CMD look */
.admin-terminal {
  background: radial-gradient(900px 420px at 12% 10%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(720px 320px at 85% 18%, rgba(59, 130, 246, 0.12), transparent 45%),
    linear-gradient(180deg, #050a14 0%, #040812 100%);
  color: rgba(226, 232, 240, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.admin-terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-terminal__dots {
  display: inline-flex;
  gap: 6px;
}

.admin-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.9;
}
.admin-terminal__dot--red { background: #ef4444; }
.admin-terminal__dot--yellow { background: #f59e0b; }
.admin-terminal__dot--green { background: #10b981; }

.admin-terminal__title {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.7);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-terminal__body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 12px 12px;
  max-height: 680px;
  overflow: auto;
}

.admin-terminal__body::-webkit-scrollbar {
  width: 10px;
}
.admin-terminal__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}
.admin-terminal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.26);
}

.admin-terminal__line {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
}
.admin-terminal__line:hover {
  background: rgba(148, 163, 184, 0.08);
}

.admin-terminal__ts {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.85);
}

.admin-terminal__prompt {
  flex: 0 0 auto;
  color: #10b981;
}

.admin-terminal__cmd {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(226, 232, 240, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-terminal__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.72rem;
  margin-left: 8px;
  white-space: nowrap;
}

.admin-terminal__pill--ok { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.12); color: rgba(167,243,208,0.95); }
.admin-terminal__pill--warn { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.12); color: rgba(253,230,138,0.95); }
.admin-terminal__pill--err { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.12); color: rgba(254,202,202,0.95); }

/* System logs: modern filter card */
.admin-logs-filter {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-logs-filter__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.admin-logs-filter .form-control,
.admin-logs-filter .form-select,
.admin-logs-filter .input-group-text {
  border-radius: 14px;
}

.admin-logs-filter .input-group-text {
  color: rgba(15, 23, 42, 0.65);
}

.admin-logs-filter .form-control:focus,
.admin-logs-filter .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.admin-logs-filter__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Admin: icon-only action buttons (with tooltips) */
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.admin-sidebar__link--danger {
  color: rgba(252, 165, 165, 0.95);
}

.admin-sidebar__link--danger:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.15);
}

.admin-sidebar__link--danger .admin-sidebar__icon {
  color: rgba(248, 113, 113, 0.88);
}

.admin-sidebar__link--danger:hover .admin-sidebar__icon {
  color: #fca5a5;
}

.admin-content {
  background: transparent;
  min-height: 100vh;
}

/* Admin mobile sidebar: slides in from the left (off-canvas) */
.admin-sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1038;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
  }

  .admin-body.admin-sidebar-is-open .admin-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .admin-body:not(.admin-sidebar-is-open) .admin-sidebar {
    pointer-events: none;
  }

  .admin-body .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(17.75rem, 88vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 1039;
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    border-right: none;
    box-shadow: none;
    overflow: hidden;
  }

  .admin-body.admin-sidebar-is-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
  }

  .admin-body .admin-sidebar .admin-sidebar__inner {
    max-height: 100vh;
    min-height: 100vh;
  }

  .admin-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 1015;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: var(--nl-shadow-card) !important;
    border-top: 0;
  }

  .admin-sidebar__close-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .admin-sidebar-backdrop,
  .admin-body .admin-sidebar {
    transition: none;
  }
}

/* Admin dashboard — legacy dark hero (unused; home uses .admin-dash-hero-home in admin.css) */
.admin-dash-hero:not(.admin-dash-hero-home):not(.dashboard-hero) {
  border-radius: var(--nl-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #0b1220 0%, #0b2a6a 42%, #3b0764 100%);
  position: relative;
}

.admin-dash-hero:not(.admin-dash-hero-home):not(.dashboard-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(ellipse 55% 40% at 85% 80%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 85% 80% at 35% 35%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 35% 35%, black, transparent);
  pointer-events: none;
}

.admin-dash-hero:not(.admin-dash-hero-home):not(.dashboard-hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.42) 0%, rgba(2, 6, 23, 0.18) 55%, rgba(2, 6, 23, 0.35) 100%);
  pointer-events: none;
}

.admin-dash-hero__inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem;
}

@media (min-width: 992px) {
  .admin-dash-hero__inner {
    padding: 1.75rem 2rem;
  }
}

.admin-dash-hero:not(.admin-dash-hero-home):not(.dashboard-hero) .admin-dash-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-dash-hero .admin-dash-title {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.admin-dash-hero .text-white-50 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.admin-dash-clock--inverse {
  color: rgba(255, 255, 255, 0.95);
}

.admin-dash-hero .admin-dash-clock {
  color: rgba(255, 255, 255, 0.95) !important;
}

.admin-dash-inbox-alert {
  background: #ef4444 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.35);
  position: relative;
  padding-right: 2.15rem !important;
}

.admin-dash-inbox-alert:hover {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.42);
}

.admin-dash-inbox-alert::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.55),
    0 0 0 0 rgba(255, 255, 255, 0.0);
  animation: adminIndicatorBlink 0.95s infinite;
}

@keyframes adminIndicatorBlink {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.55),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  55% {
    opacity: 0.25;
    box-shadow:
      0 0 0 7px rgba(255, 255, 255, 0),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 1;
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-dash-inbox-alert::after { animation: none; }
}

.admin-dash-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.admin-dash-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  background: #fff;
}

.admin-dash-action__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.10);
  flex-shrink: 0;
}

.admin-dash-action__text {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
}

.admin-dash-action__badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.admin-dash-action--warn .admin-dash-action__icon {
  color: #d97706;
  background: rgba(245, 158, 11, 0.16);
}

.admin-dash-msg {
  display: block;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-dash-msg:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.20);
}

.admin-dash-msg--unread {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.95);
}

.admin-dash-header {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.admin-dash-datetime {
  min-width: 10.5rem;
}

.admin-dash-clock {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.admin-dash-title {
  letter-spacing: -0.02em;
}

.admin-dash-kpi {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.admin-dash-kpi__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-bottom: 0.65rem;
}

.admin-dash-kpi__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-dash-kpi__icon--primary {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.admin-dash-kpi__icon--violet {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.admin-dash-kpi__icon--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.admin-dash-kpi__icon--teal {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.admin-dash-kpi__icon--rose {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.admin-dash-kpi__icon--slate {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.admin-dash-kpi__icon--indigo {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
}

.admin-dash-kpi__icon--emerald {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.admin-dash-kpi__label {
  letter-spacing: 0.06em;
  font-size: 0.65rem !important;
  margin-bottom: 0;
  line-height: 1.2;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dash-kpi__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0;
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dash-kpi__value--sm {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  max-width: 58%;
}

.admin-dash-kpi__link {
  color: #2563eb;
  font-weight: 600;
}

.admin-dash-kpi:hover .admin-dash-kpi__link {
  color: #1d4ed8;
}

/* ——— Admin dashboard page (index) ——— */
.admin-dash-hero.admin-dash-hero--page {
  border-radius: 1.15rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 28px 56px -16px rgba(15, 23, 42, 0.22);
}

.admin-dash-hero__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.admin-dash-hero__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}

.admin-dash-hero__panel {
  width: 100%;
  max-width: 17.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 991.98px) {
  .admin-dash-hero__panel {
    max-width: none;
  }
}

.admin-dash-hero__panel-date {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.admin-dash-hero__panel-clock {
  font-size: clamp(1.25rem, 4vw, 1.55rem) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-dash-kpi.admin-dash-kpi--stripe {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dash-kpi.admin-dash-kpi--stripe::before {
  display: none;
}

.admin-dash-kpi.admin-dash-kpi--stripe:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.16);
}

.admin-dash-kpi.admin-dash-kpi--stripe .admin-dash-kpi__value {
  font-size: 1.5rem;
  font-family: var(--nl-display), var(--bs-font-sans-serif);
}

.admin-dash-panel {
  border-radius: 1.1rem !important;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 48px -14px rgba(15, 23, 42, 0.12) !important;
}

.admin-dash-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-dash-panel__mark {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
}

.admin-dash-panel__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-dash-panel__subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem !important;
}

.admin-dash-panel--tips {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.admin-dash-panel__head--tips {
  background: #fffbeb;
  border-bottom-color: rgba(245, 158, 11, 0.12);
}

.admin-dash-panel__mark--tips {
  background: #f59e0b;
}

.admin-dash-qtiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .admin-dash-qtiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .admin-dash-qtiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-dash-qtile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-dash-qtile:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  color: inherit;
}

.admin-dash-qtile__icon {
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.admin-dash-qtile__icon--slate {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.admin-dash-qtile__icon--indigo {
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

.admin-dash-qtile__icon--violet {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.admin-dash-qtile__icon--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.admin-dash-qtile__icon--teal {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.admin-dash-qtile__icon--amber {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.admin-dash-qtile__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.admin-dash-qtile__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.admin-dash-qtile__meta {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.admin-dash-qtile__chev {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.admin-dash-qtile:hover .admin-dash-qtile__chev {
  color: #6366f1;
  transform: translateX(3px);
}

.admin-dash-qtile--pulse {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
  animation: adminDashQtilePulse 2.2s ease-in-out infinite;
}

@keyframes adminDashQtilePulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-dash-qtile--pulse {
    animation: none;
  }
}

.admin-dash-tips--modern {
  list-style: none;
}

.admin-dash-tips__item {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.admin-dash-tips__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ——— Admin: News page stat cards ——— */
.admin-news-stats .admin-news-stat {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.admin-news-stats .admin-news-stat::before {
  display: none;
}

.admin-news-stats .admin-news-stat:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.16);
}

/* ——— Avatars (profile photos & initials fallback) ——— */
.nl-avatar {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
}

.nl-avatar--default {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nl-avatar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 58%;
}

.nl-avatar__icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nl-avatar--photo {
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nl-avatar--sm {
  width: 32px;
  height: 32px;
}

.nl-avatar--sm .nl-avatar__icon {
  width: 56%;
  height: 56%;
}

.nl-avatar--md {
  width: 48px;
  height: 48px;
}

.nl-avatar--lg {
  width: 64px;
  height: 64px;
}

.nl-avatar--xl {
  width: 80px;
  height: 80px;
}

.nl-avatar--team {
  width: 100%;
  height: 100%;
  box-shadow: none;
  border: none;
}

.nl-avatar.nl-avatar--team.admin-user-avatar {
  width: 100%;
  height: 100%;
}

.nl-avatar--team .nl-avatar__icon {
  width: 52%;
  height: 52%;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.admin-user-avatar--lg {
  width: 64px;
  height: 64px;
}

.admin-user-avatar--default {
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.admin-user-avatar--photo {
  border: 2px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}

.admin-user-avatar--md {
  width: 48px;
  height: 48px;
  font-size: 0.8rem;
}

.admin-news-stat__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-news-stats .admin-news-stat--total .admin-news-stat__icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(37, 99, 235, 0.12));
  color: #4f46e5;
}

.admin-news-stats .admin-news-stat--published .admin-news-stat__icon {
  background: rgba(5, 150, 105, 0.14);
  color: #059669;
}

.admin-news-stats .admin-news-stat--draft .admin-news-stat__icon {
  background: rgba(71, 85, 105, 0.14);
  color: #475569;
}

.admin-news-stat__body {
  min-width: 0;
}

.admin-news-stat__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.admin-news-stat__value {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0;
}

.admin-news-stats .admin-news-stat--published .admin-news-stat__value {
  color: #047857;
}

.admin-news-stats .admin-news-stat--draft .admin-news-stat__value {
  color: #475569;
}

.admin-news-stat__hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ——— Admin: News article modal ——— */
.admin-news-article-modal {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: 1rem auto;
}

.admin-news-article-modal .modal-content {
  border-radius: 1.1rem;
  /* Explicit cap so flex children (form → body) get a real height and can overflow-y scroll */
  max-height: min(92vh, 56rem);
  width: 100%;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 25px 50px -12px rgba(15, 23, 42, 0.18) !important;
}

.admin-news-article-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.admin-news-article-modal__body {
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.admin-news-article-modal__header {
  padding: 1.35rem 1.5rem 1.15rem;
  background:
    radial-gradient(ellipse 120% 100% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(37, 99, 235, 0.1), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #eef2ff 40%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.admin-news-article-modal__eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.65rem !important;
  color: #64748b;
}

.admin-news-article-modal .modal-title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  letter-spacing: -0.02em;
  color: #0f172a;
}

.admin-news-article-modal .modal-body {
  padding: 1.5rem 1.5rem 1.35rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
}

.admin-news-article-modal .form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.35rem;
}

.admin-news-article-modal .form-control,
.admin-news-article-modal .form-select {
  border-radius: 0.55rem;
  border-color: rgba(15, 23, 42, 0.1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-news-article-modal .form-control:focus,
.admin-news-article-modal .form-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.admin-news-article-modal textarea.form-control {
  min-height: 0;
}

.admin-news-article-modal .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.admin-news-article-modal__footer {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.admin-news-article-modal__footer .btn-primary {
  min-width: 6.5rem;
}

/* Phones: fullscreen — dialog fills viewport; only the body scrolls */
@media (max-width: 575.98px) {
  .admin-news-article-modal.modal-fullscreen-sm-down {
    margin: 0;
    max-height: none;
    height: 100%;
  }

  .admin-news-article-modal.modal-fullscreen-sm-down .modal-content {
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .admin-news-article-modal.modal-fullscreen-sm-down .modal-header {
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .admin-news-article-modal.modal-fullscreen-sm-down .modal-footer {
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ——— Admin: About page (sectioned editor on page, not in modal) ——— */
.admin-about-editor .admin-about-section {
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-about-editor .admin-about-section:last-of-type {
  margin-bottom: 0;
}
.admin-about-editor .admin-about-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.2rem;
}
.admin-about-editor .admin-about-section__hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.admin-about-editor .admin-about-section__subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.admin-about-editor .admin-about-section__subsection-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.75rem;
}

/* ——— Admin: Home editor (modern two-column layout) ——— */
.admin-home-page__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.35rem;
}
.admin-home-page__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.admin-home-page__lead {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 40rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.admin-home-editor {
  border-radius: 1.15rem !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -12px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden;
}
.admin-home-editor__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(80% 80% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 45%),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.admin-home-editor__mark {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.admin-home-editor__topbar-title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.admin-home-editor__topbar-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
}
.admin-home-editor__topbar-meta a {
  font-weight: 600;
  color: #2563eb;
}
.admin-home-editor__col {
  padding: 1.5rem;
  background: #fff;
}
@media (min-width: 992px) {
  .admin-home-editor__col--rail {
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
    border-left: 1px solid rgba(15, 23, 42, 0.06);
  }
}

.admin-home-block {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.2rem;
  overflow: hidden;
}
.admin-home-block:last-child {
  margin-bottom: 0;
}
.admin-home-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.65);
}
.admin-home-block__icon {
  width: 38px;
  height: 38px;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.admin-home-block--hero .admin-home-block__icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.admin-home-block--stats .admin-home-block__icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.admin-home-block--glass .admin-home-block__icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.admin-home-block--about .admin-home-block__icon {
  background: linear-gradient(135deg, #10b981, #059669);
}
.admin-home-block--work .admin-home-block__icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.admin-home-block--news .admin-home-block__icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
}
.admin-home-block--backgrounds .admin-home-block__icon {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #4f46e5;
}
.admin-home-bg-field {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.admin-home-bg-field__preview {
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}
.admin-home-bg-field__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-home-bg-style-preview {
  --home-section-bg-blur: 10px;
  --home-section-bg-opacity: 0.5;
  --home-section-bg-overlay: calc(0.94 - (var(--home-section-bg-opacity) * 0.72));
}

/* Admin — modern range sliders (blur / opacity) */
.admin-range-field {
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.admin-range-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-range-field__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-range-field__value {
  flex-shrink: 0;
  min-width: 3.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #fff;
  background: #475569;
}

.admin-range-field__range {
  --range-pct: 50%;
  display: block;
  width: 100%;
  height: 6px;
  margin: 0 0 0.65rem;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: linear-gradient(to right, #2563eb 0%, #2563eb var(--range-pct), #e2e8f0 var(--range-pct), #e2e8f0 100%);
  outline: none;
  transition: background 0.12s ease;
}

.admin-range-field__range:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.admin-range-field__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.admin-range-field__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-range-field__range:active::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.admin-range-field__range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.admin-range-field__range::-moz-range-progress {
  height: 6px;
  border-radius: 999px 0 0 999px;
  background: #2563eb;
}

.admin-range-field__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.admin-range-field__hint {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.admin-home-bg-style-preview__frame {
  position: relative;
  overflow: hidden;
  min-height: 9.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.admin-home-bg-style-preview__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.admin-home-bg-style-preview__bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--home-section-bg-url, linear-gradient(135deg, #dbeafe 0%, #ede9fe 55%, #cffafe 100%));
  background-size: cover;
  background-position: center;
  filter: blur(var(--home-section-bg-blur, 10px));
  opacity: var(--home-section-bg-opacity, 0.5);
  transform: scale(1.05);
}

.admin-home-bg-style-preview__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, var(--home-section-bg-overlay, 0.58));
}

.admin-home-bg-style-preview__label {
  position: relative;
  z-index: 1;
  font-family: var(--nl-display, "Outfit", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-home-bg-style-preview__text {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}
.admin-home-hero-bgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}
.admin-home-hero-bgs__item {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
  cursor: pointer;
}
.admin-home-hero-bgs__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-home-hero-bgs__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.admin-home-hero-bgs__item:hover .admin-home-hero-bgs__remove,
.admin-home-hero-bgs__remove:has(input:checked) {
  opacity: 1;
}
.admin-home-hero-bgs__remove input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.admin-home-hero-bgs__remove:has(input:checked) {
  background: #dc2626;
}
.admin-home-block__title {
  font-family: var(--nl-display), var(--bs-font-sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.admin-home-block__hint {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 0;
}
.admin-home-block__body {
  padding: 1.1rem 1.15rem 1.2rem;
}
.admin-home-block__body .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-home-block__body .form-control,
.admin-home-block__body textarea.form-control {
  border-radius: 0.6rem;
  border-color: rgba(15, 23, 42, 0.1);
  font-size: 0.9rem;
}
.admin-home-block__body .form-control:focus {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
}
.admin-home-block__body .form-text {
  font-size: 0.78rem;
}

.admin-home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 575.98px) {
  .admin-home-stat-grid {
    grid-template-columns: 1fr;
  }
}
.admin-home-stat-grid__cell {
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.admin-home-stat-grid__cell .form-label {
  font-size: 0.65rem !important;
  margin-bottom: 0.25rem;
}
.admin-home-stat-grid__cell .form-control {
  font-size: 0.85rem;
  padding: 0.4rem 0.55rem;
}

.admin-home-editor__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.admin-home-editor__footer .btn-primary {
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.admin-home-editor__footer .btn-outline-secondary {
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .admin-body .admin-home-editor > .p-4.border-bottom,
  .admin-body .admin-home-editor > form.p-4,
  .admin-body .admin-home-editor form.p-4 {
    padding: 0.2rem !important;
  }

  .admin-home-editor__col {
    padding: 0.2rem;
  }

  .admin-home-block {
    margin-bottom: 0.2rem;
  }

  .admin-home-editor__footer {
    padding: 0.65rem 0.2rem;
    margin-top: 0.2rem;
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .admin-body .admin-home-editor > .p-4.border-bottom,
  .admin-body .admin-home-editor > form.p-4,
  .admin-body .admin-home-editor form.p-4 {
    padding: 0.2rem !important;
    padding-bottom: 0.2rem !important;
  }

  .admin-home-editor__col {
    padding: 0.2rem;
  }

  .admin-home-block {
    margin-bottom: 0.2rem;
    border-radius: 0.75rem;
  }

  .admin-home-block__head {
    padding: 0.55rem 0.65rem 0.5rem;
    gap: 0.55rem;
  }

  .admin-home-block__body {
    padding: 0.55rem 0.65rem 0.65rem;
  }

  .admin-home-block__body .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .admin-home-editor__footer {
    padding: 0.55rem 0.2rem max(0.55rem, env(safe-area-inset-bottom));
  }

  .admin-home-stat-grid {
    gap: 0.2rem;
  }

  .admin-home-stat-grid__cell {
    padding: 0.45rem 0.55rem;
  }
}

.admin-dash-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.admin-dash-card__head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-dash-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #64748b;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.admin-dash-table tbody td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-color: rgba(15, 23, 42, 0.06);
}

.admin-dash-table-scroll {
  max-height: 260px; /* ~5 rows visible, rest scroll */
  overflow: auto;
}

/* Compact variant for specific dashboard panels (e.g. Recent custom pages). */
.admin-dash-table-scroll--compact {
  max-height: 200px; /* slightly taller */
}

.admin-dash-tips li::marker {
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .admin-dash-kpi:hover,
  .admin-dash-kpi.admin-dash-kpi--stripe:hover {
    transform: none;
  }
}

.table-admin th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.1) !important;
}

.testimonial-quote {
  position: relative;
  padding-left: 0.5rem;
  border-left: 3px solid var(--nl-primary);
}

.why-choose-card {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.why-choose-card:hover {
  background-color: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-3px);
}

/* ——— Top contact bar (above navbar) ——— */
.site-top-bar {
  background: #eef2f7;
  color: #334155;
  border-bottom: 1px solid var(--nl-border);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.site-top-bar__icon {
  opacity: 0.9;
  flex-shrink: 0;
}

.site-top-bar__text {
  opacity: 0.92;
}

.site-top-bar__link {
  color: #334155;
  opacity: 0.95;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.site-top-bar__link:hover {
  opacity: 1;
  color: var(--nl-primary) !important;
}

.site-top-bar__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #334155;
  background: rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.site-top-bar__social.is-disabled {
  opacity: 0.45;
  background: rgba(15, 23, 42, 0.04);
  transform: none !important;
  cursor: default;
}

.site-top-bar__social:hover {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.site-top-bar__social svg {
  display: block;
}

/* ——— Public navbar (all pages) ——— */
.public-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nl-border);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07);
  z-index: 1030;
  transition:
    background 0.3s var(--nl-ease),
    box-shadow 0.3s var(--nl-ease),
    backdrop-filter 0.3s var(--nl-ease),
    padding 0.3s var(--nl-ease);
}

.public-nav.is-scrolled {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.public-nav.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--nl-accent-gradient);
  opacity: 0.85;
}

.public-nav .navbar-brand {
  color: #0f172a !important;
}

.public-nav .nav-link {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem !important;
  border-radius: var(--nl-radius-pill);
  color: #475569 !important;
  transition:
    color 0.2s var(--nl-ease),
    background 0.2s var(--nl-ease),
    transform 0.2s var(--nl-ease);
}

.public-nav .nav-link:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05);
}

.public-nav .nav-link.active {
  font-weight: 700;
  color: var(--nl-active-nav-color) !important;
  background: var(--nl-active-nav-bg);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

/* ——— Home page (premium layout) ——— */
.page-home {
  --home-font: var(--nl-font);
  --home-display: var(--nl-display);
  --home-bg: var(--nl-page-bg);
  --home-surface: var(--nl-surface);
  --home-text: #0f172a;
  --home-muted: #64748b;
  --home-line: var(--nl-border);
  --home-accent: var(--nl-primary);
  --home-accent-2: var(--nl-accent);
  font-family: var(--home-font);
  background-color: var(--home-bg);
  background-image: var(--nl-page-bg-image);
}

/* Match other public pages: same container gutters, no extra max-width inset */
.page-home main > section > .container-fluid,
.page-app main > section > .container-fluid {
  width: 100%;
  max-width: none;
}

/* Public pages mobile — one gutter layer only (site-body), not stacked with container px-3 */
@media (max-width: 767.98px) {
  .site-body.page-home,
  .site-body.page-app {
    --site-page-gutter: 0.75rem;
    padding-inline: var(--site-page-gutter);
  }

  .page-home .container-fluid.px-3,
  .page-app .container-fluid.px-3 {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .site-body.page-home,
  .site-body.page-app {
    --site-page-gutter: 0.5rem;
    padding-inline: var(--site-page-gutter);
  }

  .page-home main .row,
  .page-app main .row {
    --bs-gutter-x: 0;
  }

  .page-home main .row > [class*="col-"],
  .page-app main .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

.page-home .public-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nl-border);
  box-shadow: none;
}

.page-home .public-nav.is-transparent {
  background: transparent !important;
  border-bottom-color: transparent;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page-home .public-nav.is-transparent .navbar-brand,
.page-home .public-nav.is-transparent .nav-link {
  color: rgba(15, 23, 42, 0.88) !important;
}

.page-home .public-nav.is-transparent .nav-link:hover {
  color: var(--nl-primary) !important;
  background: rgba(37, 99, 235, 0.08);
}

.page-home .public-nav.is-transparent .nav-link.active {
  color: var(--nl-active-nav-color) !important;
  background: var(--nl-active-nav-bg);
}

.page-home .public-nav.is-transparent .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.65) !important;
}

.page-home .public-nav.is-transparent:has(.navbar-toggler[aria-expanded="true"]),
.page-home .public-nav.is-transparent:has(#mainNav.collapse.show) {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1) !important;
  border-bottom: 1px solid var(--nl-border) !important;
}

@media (max-width: 991.98px) {
  .page-home .public-nav .navbar-collapse.show {
    margin-top: 0.5rem;
    padding: 0.35rem 0.5rem 0.6rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--nl-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  }
}

.page-home .navbar-brand {
  font-family: var(--home-display);
  letter-spacing: -0.02em;
}

/* Hero — clean, breathable layout */
.home-hero {
  background: var(--home-bg);
  color: var(--home-text);
  padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
  .home-hero {
    min-height: clamp(480px, min(72vh, 760px), 820px);
    padding-bottom: 5rem;
  }
}

.home-hero-inner {
  padding-top: 4.5rem;
  padding-bottom: 4.25rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .home-hero-inner {
    padding-top: 5rem;
    padding-bottom: 4.75rem;
  }
}

@media (min-width: 992px) {
  .home-hero-inner {
    padding-top: 6rem;
    padding-bottom: 5.5rem;
  }
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 92%);
}

html[data-theme="dark"] .home-hero__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.28;
  animation: home-glow-drift 18s ease-in-out infinite alternate;
  transition: transform 0.35s var(--nl-ease);
}

.home-hero__glow--1 {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  background: rgba(37, 99, 235, 0.28);
  top: -8%;
  right: -4%;
}

.home-hero__glow--2 {
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  background: rgba(124, 58, 237, 0.18);
  bottom: 8%;
  left: -6%;
  animation-delay: -6s;
}

.home-hero__glow--3 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background: rgba(6, 182, 212, 0.22);
  top: 35%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes home-glow-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, -18px) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow {
    animation: none;
  }
}

.home-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--home-bg), transparent);
  pointer-events: none;
}

.home-eyebrow {
  color: var(--home-muted);
  letter-spacing: 0.12em;
}

.home-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nl-primary);
  opacity: 1;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
  animation: home-eyebrow-pulse 2.5s ease-in-out infinite;
}

@keyframes home-eyebrow-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.55);
  }
}

.home-display {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.home-hero-title--rotate .home-hero-title-clip {
  display: block;
  overflow: hidden;
}

.home-hero-title--rotate .home-hero-title-line {
  display: block;
  min-height: 1.2em;
  transition:
    transform 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  will-change: transform, opacity;
}

/* Exit to the right; next line enters from the left */
.home-hero-title-line.is-hero-out {
  transform: translateX(120%);
  opacity: 0;
}

.home-hero-title-line.is-hero-in-from {
  transition: none;
  transform: translateX(-120%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-title--rotate .home-hero-title-line {
    transition: opacity 0.25s ease;
    transform: none !important;
  }

  .home-hero-title-line.is-hero-out {
    transform: none !important;
    opacity: 0;
  }

  .home-hero-title-line.is-hero-in-from {
    opacity: 0;
  }
}

/* Plan feature lists (one admin line = one bullet) */
.plan-desc-bullets {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.plan-desc-bullets li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.plan-desc-bullets li:last-child {
  margin-bottom: 0;
}

.home-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 36rem;
}

.home-hero-subtitle-lead {
  min-height: 1.65em;
}

.home-hero-subtitle {
  vertical-align: baseline;
}

.home-hero-subtitle__cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--home-muted);
  vertical-align: -0.12em;
  animation: home-subtitle-cursor-blink 0.85s steps(1, end) infinite;
}

.home-hero-subtitle__cursor.is-done {
  display: none;
}

@keyframes home-subtitle-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-subtitle__cursor {
    animation: none;
    opacity: 0.5;
  }
}

.btn-home-primary {
  --bs-btn-bg: var(--nl-primary);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: #1e40af;
  --bs-btn-active-border-color: transparent;
  background: var(--nl-primary);
  border: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-home-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.btn-home-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.btn-home-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.home-hero__ctas {
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}

.home-hero__ctas .btn {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .home-hero__ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 992px) {
  .home-hero__ctas .btn {
    flex: 0 1 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .home-hero__ctas {
    gap: 0.375rem !important;
  }

  .home-hero__ctas .btn-lg {
    padding: 0.55rem 0.5rem;
    font-size: 0.875rem;
  }
}

.btn-home-secondary {
  font-weight: 600;
  border-radius: var(--nl-radius-pill);
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--home-line);
  color: var(--home-text);
  background: transparent;
  transition:
    background 0.25s var(--nl-ease),
    border-color 0.25s var(--nl-ease),
    color 0.25s var(--nl-ease),
    transform 0.25s var(--nl-ease),
    box-shadow 0.25s var(--nl-ease);
}

.btn-home-secondary:hover {
  background: var(--home-surface);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--home-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
}

.btn-home-secondary.btn-lg {
  padding: 0.65rem 1.75rem;
}

.home-stat__value {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--home-text);
}

.home-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--home-muted);
}

.home-glass-card {
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius-xl);
  box-shadow: var(--nl-shadow-card);
  overflow-wrap: anywhere;
}

.home-glass-card__eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nl-primary);
}

.home-glass-card__head {
  width: 100%;
  flex-shrink: 0;
}

.home-glass-card__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
}

.home-glass-card__title {
  color: var(--home-text);
  font-family: var(--home-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  flex: 1 1 auto;
  min-width: 0;
}

.home-glass-card__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--nl-primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.home-glass-card__features {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.75rem;
  width: 100%;
  min-height: 0;
}

.home-glass-card__feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.home-glass-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: var(--nl-primary);
  background: rgba(37, 99, 235, 0.12);
}

.home-glass-card__feature-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.9rem, 1.6vw, 0.975rem);
  line-height: 1.5;
  color: var(--home-text);
  font-weight: 500;
}

.home-glass-card__actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

.home-glass-card__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.home-glass-card__kicker {
  color: var(--home-muted);
}

.home-glass-card__list {
  color: var(--home-muted);
}

.page-home .home-hero .home-glass-card .text-white {
  color: var(--home-text) !important;
}

.page-home .home-hero .home-glass-card .text-white-50 {
  color: var(--home-muted) !important;
}

html[data-theme="light"] .page-home .home-hero .home-glass-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--home-line);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .page-home .home-hero .home-glass-card .btn-outline-light {
  color: var(--home-text) !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  background: transparent !important;
}

html[data-theme="light"] .page-home .home-hero .home-glass-card .btn-outline-light:hover {
  color: var(--home-text) !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.32) !important;
}

html[data-theme="light"] .page-home .home-hero .btn-home-outline {
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--home-text);
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .page-home .home-hero .btn-home-outline:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.35);
  color: var(--home-text);
}

.home-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nl-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.home-pill--accent {
  animation: home-pulse 2.5s ease-in-out infinite;
}

@keyframes home-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

.home-icon-check {
  color: var(--nl-primary);
}

.letter-spacing-sm {
  letter-spacing: 0.08em;
}

/* Plans */
.home-plans {
  position: relative;
  background: var(--home-bg);
}

.home-plans::before {
  display: none;
}

.home-plans > .container-fluid {
  position: relative;
  z-index: 1;
}

/* Home card rows — horizontal scroll when more than 4 items */
.home-plans--scroll,
.home-news--scroll {
  overflow: visible;
}

.home-card-scroll {
  --home-card-scroll-gap: 1.5rem;
  margin-inline: calc(-0.25rem);
  padding-inline: 0.25rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.home-card-scroll::-webkit-scrollbar {
  height: 6px;
}

.home-card-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.35);
}

.home-card-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.home-card-scroll__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--home-card-scroll-gap);
  width: max-content;
  min-width: 100%;
}

.home-card-scroll__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(82vw, 18rem);
}

@media (min-width: 768px) {
  .home-card-scroll__item {
    width: calc((100% - var(--home-card-scroll-gap)) / 2);
  }
}

@media (min-width: 1200px) {
  .home-card-scroll__item {
    width: calc((100% - 3 * var(--home-card-scroll-gap)) / 4);
  }
}
.home-about {
  position: relative;
  overflow: hidden;
  background: var(--home-surface);
  border-bottom: 1px solid var(--home-line);
}

.home-about::before {
  display: none;
}

.home-about.home-band {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
  .home-about.home-band {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

.home-about > .container-fluid {
  position: relative;
  z-index: 1;
}

.home-about-text {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 38rem;
}

/* Keep the home About preview compact. */
.home-about-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-about.home-band .home-about-text--compact {
  font-size: 1rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
}

.home-about.home-band .home-about-visual {
  min-height: 12rem;
  padding: 0.75rem 0.5rem;
}

.home-about.home-band .home-about-visual__card {
  padding: 1.35rem 1.25rem;
  max-width: 20rem;
}

.home-about.home-band .home-about-visual__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.65rem;
}

.home-about.home-band .home-about-visual__icon svg {
  width: 22px;
  height: 22px;
}

.home-about.home-band .home-about-visual__text {
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-about.home-band .btn-home-primary {
  padding: 0.5rem 1.35rem;
  font-size: 0.9375rem;
}

/* Section headings (home) */
.home-section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--home-accent);
}

.home-section-label--on-dark {
  color: #93c5fd;
}

.home-section-title {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--home-text);
}

.home-section-title--on-dark {
  color: #fff;
}

.home-section-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 40rem;
}

.home-section-subtitle--on-dark {
  color: rgba(255, 255, 255, 0.6);
}

/* Compact band sections (work / news headers) */
.home-band.py-4 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

@media (min-width: 992px) {
  .home-band.py-lg-5 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
}

.home-section-head {
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.home-section-head--compact {
  gap: 0.65rem !important;
  margin-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
  .home-section-head--compact {
    margin-bottom: 1.75rem !important;
  }
}

.home-section-title--compact.nl-about-cta__title,
.nl-about-cta__title.home-section-title--compact {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.12;
}

.home-section-subtitle--compact {
  font-size: 0.98rem;
  line-height: 1.5;
}

.home-section-head--compact .btn-home-secondary.btn-lg {
  padding: 0.5rem 1.35rem;
  font-size: 0.9375rem;
}

.home-cta--compact .home-cta__title--compact {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.home-cta--compact .home-cta__lead--compact {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 26rem;
}

.home-cta--compact .btn-home-primary,
.home-cta--compact .btn-home-outline {
  padding: 0.5rem 1.35rem;
  font-size: 0.9375rem;
}

.home-cta--compact .home-cta__ring {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
}

/* Services */
.home-services {
  background: var(--home-surface);
}

.home-service-card {
  position: relative;
  background: var(--home-surface);
  border-radius: 1.15rem;
  border: 1px solid var(--home-line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s var(--nl-ease), box-shadow 0.35s var(--nl-ease), border-color 0.35s var(--nl-ease);
  overflow: hidden;
}

.home-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

.home-service-card__accent {
  display: none;
}

.home-service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--home-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--home-accent);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 0.75rem;
}

/* Home service cards with media (Portfolio / News previews) */
.page-home .home-service-card--media {
  padding: 0;
  border-radius: var(--nl-radius-xl);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: var(--nl-shadow-card);
}

.page-home .home-service-card--media:hover {
  transform: translateY(-6px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.18);
}

.home-card-placeholder {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.home-card-placeholder__text {
  font-family: var(--home-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.home-service-card__body {
  padding: 1.2rem 1.35rem 1.35rem;
}

.home-service-card__title {
  font-family: var(--home-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--home-text);
  text-align: center;
}

@media (min-width: 768px) {
  .home-service-card__title {
    text-align: start;
  }
}

.page-home .home-service-card--media .home-service-card__thumb {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.page-home .home-service-card--media .home-service-card__thumb img {
  transition: transform 0.45s ease;
}

.page-home .home-service-card--media:hover .home-service-card__thumb img {
  transform: scale(1.05);
}

/* Testimonials */
.home-testimonials {
  background: var(--home-surface);
  border-top: 1px solid var(--home-line);
}

.home-testimonials .home-section-head--compact {
  margin-bottom: 1.25rem !important;
}

@media (min-width: 992px) {
  .home-testimonials .home-section-head--compact {
    margin-bottom: 1.5rem !important;
  }
}

.home-t-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: var(--nl-radius-xl);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--nl-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.16);
}

.home-t-card__stars {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-t-card__quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--home-text);
  border: none;
  padding: 0;
  margin: 0;
}

.home-avatar.nl-avatar {
  flex-shrink: 0;
}

/* Why choose */
.home-why {
  background: #0a0e1a;
}

.home-why__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.2), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 211, 238, 0.12), transparent);
  pointer-events: none;
}

.home-why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.home-why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.home-why-card__num {
  font-family: var(--home-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #60a5fa;
  opacity: 0.9;
}

/* News band (home) — clean alternating surface */
.home-news {
  position: relative;
  background: var(--home-surface);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-news::before {
  display: none;
}

.home-news > .container-fluid {
  position: relative;
  z-index: 1;
}

.home-news .home-section-head--compact {
  gap: 0.5rem !important;
  margin-bottom: 1.25rem !important;
}

.home-cta-band {
  background: var(--home-bg);
}

@media (min-width: 992px) {
  .home-news .home-section-head--compact {
    margin-bottom: 1.5rem !important;
  }
}

.home-plan-card {
  position: relative;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.home-plan-card--featured {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.18);
  transform: scale(1.02);
}

.home-plan-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.home-plan-card__ribbon {
  position: absolute;
  top: 1rem;
  right: -2.25rem;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.home-plan-speed {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--home-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.home-plan-price {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  color: var(--home-text);
}

.home-plan-price__currency {
  font-size: 1.25rem;
  vertical-align: super;
  opacity: 0.85;
  margin-right: 0.15em;
}

.home-plan-price__amount {
  font-variant-numeric: tabular-nums;
}

.home-plan-price__period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--home-muted);
}

/* CTA */
.home-cta {
  background: #0f172a;
}

.home-cta__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, transparent 50%),
    linear-gradient(225deg, rgba(124, 58, 237, 0.25) 0%, transparent 45%);
  opacity: 0.9;
}

.home-cta__title {
  font-family: var(--home-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.home-cta__lead {
  max-width: 28rem;
}

@media (max-width: 991.98px) {
  .home-plan-card--featured {
    transform: none;
  }

  .home-plan-card--featured:hover {
    transform: translateY(-4px);
  }
}

/* Social proof marquee */
.nl-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.nl-marquee__track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0.25rem 0;
  animation: nl-marquee var(--nl-marquee-duration, 48s) linear infinite;
}

.nl-marquee:hover .nl-marquee__track {
  animation-play-state: paused;
}

.nl-marquee__item {
  flex: 0 0 auto;
  width: min(420px, 88vw);
}

@keyframes nl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-marquee__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }

  .nl-marquee__item {
    width: 100%;
  }

  .page-home .home-service-card:hover,
  .page-home .home-t-card:hover,
  .page-home .home-why-card:hover,
  .page-home .home-plan-card:hover,
  .page-home .home-plan-card--featured:hover,
  .page-home .btn-home-primary:hover {
    transform: none;
  }

  .page-home .home-service-card--media:hover .home-service-card__thumb img {
    transform: none;
  }

  .home-pill--accent {
    animation: none;
  }

  .home-eyebrow__dot {
    animation: none;
  }

  .page-app .plan-card-hover:hover,
  .page-app .blog-card-hover:hover,
  .page-app .btn-primary:hover {
    transform: none;
  }
}

/* =============================================================================
   Public site theme (default: dark). Toggle: #themeToggle in layout navbar.
   ============================================================================= */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  outline-offset: 2px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

html[data-theme="light"] .theme-toggle:hover {
  background: rgba(15, 23, 42, 0.09);
  border-color: rgba(15, 23, 42, 0.2);
  color: #020617;
}

html[data-theme="light"] .theme-toggle__moon {
  display: block;
}

/* ——— Dark theme (optional) — inner pages ——— */
html[data-theme="dark"] {
  color-scheme: dark;
  background-color: #070b12;
}

html[data-theme="dark"] .page-app {
  background-color: #0f172a;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 50%),
    linear-gradient(180deg, #111827 0%, #0f172a 40%, #0b1220 100%);
  color: #e2e8f0;
}

html[data-theme="dark"] .page-hero {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .page-hero--app {
  background: linear-gradient(165deg, #1e293b 0%, #172033 48%, #0f172a 100%);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .page-hero--app::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
}

html[data-theme="dark"] .page-app .page-hero--app .lead {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .page-app .display-5,
html[data-theme="dark"] .page-app .display-6,
html[data-theme="dark"] .page-app h1 {
  color: #f1f5f9;
}

html[data-theme="dark"] .page-app .card.border-0.shadow-sm,
html[data-theme="dark"] .page-app .nl-surface,
html[data-theme="dark"] .page-app .nl-prose-card {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #e2e8f0;
}

html[data-theme="dark"] .page-app .card .text-secondary,
html[data-theme="dark"] .page-app .text-secondary {
  color: #94a3b8 !important;
}

html[data-theme="dark"] main .text-dark {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .nl-prose,
html[data-theme="dark"] .page-app .cms-page-body {
  color: #94a3b8;
}

html[data-theme="dark"] .page-app .nl-contact-card,
html[data-theme="dark"] .page-app .nl-form-panel {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .page-app .nl-contact-card .text-secondary,
html[data-theme="dark"] .page-app .nl-form-panel .text-secondary {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .nl-contact-label {
  color: #64748b;
}

html[data-theme="dark"] .page-app .form-control,
html[data-theme="dark"] .page-app .form-select {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

html[data-theme="dark"] .page-app .form-control::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .page-app .form-control:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .pagination .page-link {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

html[data-theme="dark"] .pagination .page-item.active .page-link {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* ——— Dark theme — public chrome ——— */
html[data-theme="dark"] .site-top-bar {
  background: #0f172a;
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .site-top-bar__text,
html[data-theme="dark"] .site-top-bar__link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-top-bar__link:hover {
  color: #93c5fd !important;
}

html[data-theme="dark"] .site-top-bar__social {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-top-bar__social:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.25);
}

html[data-theme="dark"] .public-nav,
html[data-theme="dark"] .page-app .public-nav,
html[data-theme="dark"] .page-home .public-nav:not(.is-transparent) {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] .public-nav .navbar-brand {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .public-nav .nav-link {
  color: rgba(226, 232, 240, 0.88) !important;
}

html[data-theme="dark"] .public-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .public-nav .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(124, 58, 237, 0.35));
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .page-home .public-nav.is-transparent .navbar-brand,
html[data-theme="dark"] .page-home .public-nav.is-transparent .nav-link {
  color: rgba(226, 232, 240, 0.92) !important;
}

html[data-theme="dark"] .page-home .public-nav.is-transparent .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .page-home .public-nav.is-transparent .nav-link.active {
  color: #fff !important;
}

html[data-theme="dark"] .page-home .public-nav.is-transparent .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .page-home .public-nav.is-transparent:has(.navbar-toggler[aria-expanded="true"]),
html[data-theme="dark"] .page-home .public-nav.is-transparent:has(#mainNav.collapse.show) {
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 991.98px) {
  html[data-theme="dark"] .page-home .public-nav .navbar-collapse.show {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
  }
}

/* ——— Dark theme — home bands ——— */
html[data-theme="dark"] .page-home {
  --home-bg: #0b1220;
  --home-surface: #141c2f;
  --home-text: #e2e8f0;
  --home-muted: #94a3b8;
  --home-line: rgba(148, 163, 184, 0.15);
  --home-accent: #60a5fa;
}

html[data-theme="dark"] .home-about {
  background: var(--home-surface);
  border-bottom-color: var(--home-line);
}

html[data-theme="dark"] .home-plans {
  background: var(--home-bg);
}

html[data-theme="dark"] .home-news {
  background: var(--home-surface);
  border-top-color: var(--home-line);
  border-bottom-color: var(--home-line);
}

html[data-theme="dark"] .home-news::before {
  display: none;
}

html[data-theme="dark"] .home-testimonials {
  background: var(--home-bg);
}

html[data-theme="dark"] .home-cta-band {
  background: var(--home-bg);
}

html[data-theme="dark"] .page-home .home-service-card--media {
  background: var(--home-surface);
}

html[data-theme="dark"] .home-glass-card {
  background: var(--home-surface);
  border-color: var(--home-line);
}

html[data-theme="dark"] .home-card-placeholder {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
}

html[data-theme="dark"] .home-card-placeholder__text {
  color: #64748b;
}

html[data-theme="dark"] .home-service-card {
  background: var(--home-surface);
  border-color: var(--home-line);
}

html[data-theme="dark"] .home-service-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .home-t-card {
  background: var(--home-surface);
  border-color: var(--home-line);
}

html[data-theme="dark"] .home-t-card__quote {
  color: var(--home-text);
}

html[data-theme="dark"] .page-home .home-service-card--media .home-service-card__thumb {
  background: #0f172a;
}

html[data-theme="dark"] .home-section-subtitle {
  color: var(--home-muted);
}

html[data-theme="dark"] .home-about-text {
  color: var(--home-muted) !important;
}

/* Dark theme — typography & utilities that stay “light UI” by default */
html[data-theme="dark"] .page-app .page-hero__eyebrow {
  color: #60a5fa;
}

html[data-theme="dark"] .page-home .btn-home-secondary {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .page-home .btn-home-secondary:hover {
  color: #93c5fd;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(96, 165, 250, 0.45);
}

html[data-theme="dark"] .page-home .btn-outline-dark {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}

html[data-theme="dark"] .page-home .btn-outline-dark:hover {
  color: #0f172a;
  background-color: #e2e8f0;
  border-color: #e2e8f0;
}

html[data-theme="dark"] .home-t-card .border-light {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] .page-app .bg-light {
  background-color: #1e293b !important;
}

html[data-theme="dark"] .page-app .badge.text-bg-light {
  background-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

/* ——— Light theme — top bar & nav ——— */
html[data-theme="light"] .site-top-bar {
  background: #eef2f7;
  color: #0f172a !important;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-top-bar__text,
html[data-theme="light"] .site-top-bar__link {
  color: #334155 !important;
}

html[data-theme="light"] .site-top-bar__link:hover {
  color: var(--nl-primary) !important;
}

html[data-theme="light"] .site-top-bar__social {
  color: #334155;
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .site-top-bar__social:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .page-app .public-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] .page-app .public-nav .navbar-brand,
html[data-theme="light"] .page-app .public-nav .nav-link {
  color: #1e293b !important;
}

html[data-theme="light"] .page-app .public-nav .nav-link:hover {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .page-app .public-nav .nav-link.active {
  color: #1d4ed8 !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

html[data-theme="light"] .page-home .public-nav:not(.is-transparent) {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .page-home .public-nav:not(.is-transparent) .navbar-brand,
html[data-theme="light"] .page-home .public-nav:not(.is-transparent) .nav-link {
  color: #1e293b !important;
}

html[data-theme="light"] .page-home .public-nav:not(.is-transparent) .nav-link.active {
  color: var(--nl-active-nav-color) !important;
}

html[data-theme="light"] .page-home .public-nav:not(.is-transparent) .navbar-collapse.show {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .page-home .public-nav:not(.is-transparent) .navbar-collapse.show .nav-link {
  color: #1e293b !important;
}

/* ——— Light theme — footer ——— */
html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

html[data-theme="light"] .site-footer__heading {
  color: #0f172a;
}

html[data-theme="light"] .site-footer::before {
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 65%);
}

html[data-theme="light"] .site-footer .text-white-50,
html[data-theme="light"] .site-footer .link-light {
  color: #475569 !important;
}

html[data-theme="light"] .site-footer a.link-light:hover,
html[data-theme="light"] .site-footer a.text-white-50:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .site-footer__sep {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .site-footer__panel {
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-footer__newsletter .form-control {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* ——— Modern design enhancements ——— */

.home-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-section-bg::before,
.home-section-bg__slide::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--home-section-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--home-section-bg-blur, 10px));
  opacity: var(--home-section-bg-opacity, 0.5);
  transform: scale(1.05);
  will-change: transform, opacity, filter;
}

.home-section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(248, 250, 252, var(--home-section-bg-overlay, 0.58));
}

.home-section-bg--hero::after {
  background: linear-gradient(
    165deg,
    rgba(248, 250, 252, calc(var(--home-section-bg-overlay, 0.58) + 0.06)) 0%,
    rgba(248, 250, 252, var(--home-section-bg-overlay, 0.58)) 55%,
    rgba(241, 245, 249, calc(var(--home-section-bg-overlay, 0.58) + 0.04)) 100%
  );
}

.home-hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-hero-bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(248, 250, 252, calc(var(--home-section-bg-overlay, 0.58) + 0.04)) 0%,
    rgba(248, 250, 252, var(--home-section-bg-overlay, 0.58)) 55%,
    rgba(241, 245, 249, calc(var(--home-section-bg-overlay, 0.58) + 0.06)) 100%
  );
  pointer-events: none;
}

.home-section-bg__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.home-section-bg__slide.is-active {
  opacity: 1;
}

.home-section-bg--cta::after {
  background: rgba(248, 250, 252, var(--home-section-bg-overlay, 0.58));
}

html[data-theme="dark"] .home-section-bg::after,
html[data-theme="dark"] .home-section-bg--cta::after {
  background: rgba(11, 18, 32, var(--home-section-bg-overlay, 0.58));
}

html[data-theme="dark"] .home-section-bg--hero::after,
html[data-theme="dark"] .home-hero-bg-slideshow::after {
  background: linear-gradient(
    165deg,
    rgba(11, 18, 32, calc(var(--home-section-bg-overlay, 0.58) + 0.06)) 0%,
    rgba(11, 18, 32, var(--home-section-bg-overlay, 0.58)) 55%,
    rgba(15, 23, 42, calc(var(--home-section-bg-overlay, 0.58) + 0.04)) 100%
  );
}

.home-section__content {
  position: relative;
  z-index: 2;
}

.home-cta.home-section--has-bg .home-cta__bg {
  opacity: 0.35;
}

.page-home .home-hero .home-hero__mesh,
.page-home .home-hero .home-hero__grid,
.page-home .home-hero .home-hero__ring,
.page-home .home-hero .home-hero__glow,
.page-home .home-hero .home-hero__wave {
  z-index: 1;
}

.home-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 30%, rgba(124, 58, 237, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(8, 145, 178, 0.08), transparent 50%);
  pointer-events: none;
}

.home-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  pointer-events: none;
  animation: home-ring-spin 40s linear infinite;
}

.home-hero__ring--1 {
  width: min(520px, 75vw);
  height: min(520px, 75vw);
  top: 8%;
  right: -8%;
  border-style: dashed;
  opacity: 0.55;
}

.home-hero__ring--2 {
  width: min(320px, 50vw);
  height: min(320px, 50vw);
  bottom: 12%;
  left: -6%;
  border-color: rgba(124, 58, 237, 0.15);
  animation-direction: reverse;
  animation-duration: 32s;
}

@keyframes home-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.home-display--gradient {
  color: #0f172a;
}

html[data-theme="dark"] .home-display--gradient {
  color: #f8fafc;
}

.page-home .home-hero .home-lead,
.page-home .home-hero .home-hero-subtitle {
  color: #0f172a;
}

.page-home .home-hero .home-hero-subtitle__cursor {
  background: #0f172a;
}

html[data-theme="dark"] .page-home .home-hero .home-lead,
html[data-theme="dark"] .page-home .home-hero .home-hero-subtitle {
  color: #e2e8f0;
}

html[data-theme="dark"] .page-home .home-hero .home-hero-subtitle__cursor {
  background: #e2e8f0;
}

.home-eyebrow--pill {
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  border-radius: var(--nl-radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--nl-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-section-label--pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--nl-radius-pill);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.home-section-label--pill.home-section-label--on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #bfdbfe;
}

.home-stat-pill {
  flex: 1 1 auto;
  min-width: 6.5rem;
  max-width: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--nl-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.25s var(--nl-ease), box-shadow 0.25s var(--nl-ease), border-color 0.25s var(--nl-ease);
}

@media (min-width: 992px) {
  .home-stat-pill {
    text-align: left;
    flex: 0 0 auto;
  }
}

.home-stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.home-stat-pill .home-stat__value {
  color: var(--nl-primary);
}

.home-glass-card-wrap {
  position: relative;
  padding: 0;
  border-radius: 1.35rem;
  border: 1px solid var(--nl-border);
  box-shadow: var(--nl-shadow-card);
  animation: home-glass-float 4.5s ease-in-out infinite;
  will-change: transform;
  height: 100%;
}

.page-home .home-hero .home-glass-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  min-height: 21.5rem;
  padding: 1.5rem 1.35rem;
}

.page-home .home-hero .home-glass-card__features {
  flex: 1 1 auto;
}

@media (min-width: 992px) {
  .page-home .home-hero .home-glass-card {
    gap: 1.5rem;
    min-height: 26.5rem;
    padding: 2.15rem 2rem;
  }

  .page-home .home-hero .home-glass-card__features {
    gap: 0.85rem;
  }

  .page-home .home-hero .home-glass-card__feature {
    padding: 0.95rem 1.1rem;
  }
}

@keyframes home-glass-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.home-glass-card-wrap .home-glass-card {
  border-radius: 1.35rem;
  border: none;
  box-shadow: none;
}

html[data-theme="dark"] .home-glass-card__badge {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
  color: #93c5fd;
}

html[data-theme="dark"] .home-glass-card__check {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

html[data-theme="dark"] .home-glass-card__feature {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.12);
}

html[data-theme="dark"] .home-glass-card__feature-text {
  color: #e2e8f0;
}

html[data-theme="dark"] .home-glass-card__eyebrow {
  color: #93c5fd;
}

.home-about-visual {
  position: relative;
  min-height: 18rem;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.home-about-visual__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.home-about-visual__orb--1 {
  width: 220px;
  height: 220px;
  top: 0;
  right: 10%;
  background: rgba(37, 99, 235, 0.2);
  animation: home-glow-drift 14s ease-in-out infinite alternate;
}

.home-about-visual__orb--2 {
  width: 180px;
  height: 180px;
  bottom: 5%;
  left: 5%;
  background: rgba(124, 58, 237, 0.18);
  animation: home-glow-drift 18s ease-in-out infinite alternate-reverse;
}

.home-about-visual__card {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  padding: 2rem 1.75rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--nl-border);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(-2deg);
  transition: transform 0.35s var(--nl-ease);
}

.home-about:hover .home-about-visual__card,
.home-about-visual__card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.home-about-visual__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
  background: var(--nl-gradient-cta);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.home-about-visual__tag {
  letter-spacing: 0.12em;
  color: var(--nl-primary);
}

.home-about-visual__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--home-muted);
}

.home-card-link {
  height: 100%;
}

.home-card-index {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: var(--home-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--nl-radius-pill);
  color: var(--nl-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.home-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--nl-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--nl-ease), transform 0.25s var(--nl-ease);
}

.home-card-link:hover .home-card-more {
  opacity: 1;
  transform: translateX(0);
}

.home-service-card--media .home-service-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--nl-ease);
  pointer-events: none;
}

.home-card-link:hover .home-service-card__thumb::after {
  opacity: 1;
}

.home-t-card {
  position: relative;
  overflow: hidden;
}

.home-t-card__quote-mark {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--home-display);
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.08);
  pointer-events: none;
  user-select: none;
}

.home-cta {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 48%, #0f172a 100%);
}

.home-cta__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(124, 58, 237, 0.28), transparent 52%);
  pointer-events: none;
}

.home-cta__ring {
  position: absolute;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: home-ring-spin 50s linear infinite;
}

.home-cta .btn-home-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.home-cta .btn-home-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

html[data-theme="dark"] .home-stat-pill {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .home-eyebrow--pill {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .home-about-visual__card {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .home-card-index {
  background: rgba(15, 23, 42, 0.88);
  color: #93c5fd;
  border-color: rgba(148, 163, 184, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__ring,
  .home-cta__ring {
    animation: none;
  }

  .home-glass-card-wrap {
    animation: none;
  }

  .home-card-more {
    opacity: 1;
    transform: none;
  }

  .home-about-visual__card {
    transform: none;
  }

  .nl-prose-card:hover,
  .home-stat-pill:hover {
    transform: none;
  }
}

/* ——— Portfolio website embed previews ——— */
.portfolio-media__embed-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.portfolio-media__embed-fill--shot {
  background: #f1f5f9;
}

.portfolio-media__screenshot {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.portfolio-media__embed-fill--shot.is-loaded .portfolio-media__fallback {
  display: none;
}

.portfolio-media__embed-fill--shot.is-error .portfolio-media__screenshot {
  display: none;
}

.portfolio-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.portfolio-media__fallback-icon {
  color: var(--nl-primary);
  opacity: 0.85;
}

.portfolio-media__fallback-host {
  font-family: var(--nl-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.portfolio-media__fallback-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.portfolio-media--embed-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--nl-radius-xl);
  border: 1px solid var(--nl-border);
  background: #fff;
  box-shadow: var(--nl-shadow-card);
}

.portfolio-media--embed-hero .portfolio-media__embed-fill--shot {
  position: relative;
  inset: auto;
  height: min(68vh, 520px);
}

.portfolio-media__screenshot--hero {
  min-height: min(68vh, 520px);
  object-position: top center;
}

.portfolio-media__open-link {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--nl-radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--nl-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-media__open-link:hover {
  color: var(--nl-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .portfolio-media--embed-hero,
html[data-theme="dark"] .portfolio-media__embed-fill {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .portfolio-media__open-link {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
}

/* ——— Work project gallery & lightbox ——— */
.work-gallery-trigger {
  position: relative;
  display: block;
  border-radius: var(--nl-radius-lg);
  overflow: hidden;
  background: #f1f5f9;
  cursor: zoom-in;
  transition: transform 0.25s var(--nl-ease), box-shadow 0.25s var(--nl-ease);
}

.work-gallery-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.work-gallery-trigger__img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.work-gallery-trigger__img--hero {
  max-height: 28rem;
}

.work-gallery-trigger__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-gallery-trigger:hover .work-gallery-trigger__zoom,
.work-gallery-trigger:focus-visible .work-gallery-trigger__zoom {
  opacity: 1;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.work-gallery-trigger--thumb {
  aspect-ratio: 4 / 3;
}

.work-gallery-trigger--thumb .work-gallery-trigger__img {
  height: 100%;
}

.work-gallery-trigger__badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

body.work-lightbox-open {
  overflow: hidden;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.work-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 56rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
}

.work-lightbox__figure {
  position: relative;
  margin: 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.work-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 52rem);
  max-height: min(78dvh, 52rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.work-lightbox__counter {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.work-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}

.work-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.work-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}

.work-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.work-lightbox__nav--prev {
  left: 0.35rem;
}

.work-lightbox__nav--next {
  right: 0.35rem;
}

@media (max-width: 575.98px) {
  .work-lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .work-lightbox__nav--prev {
    left: 0.15rem;
  }

  .work-lightbox__nav--next {
    right: 0.15rem;
  }
}

.admin-actions-dropdown .dropdown-menu {
  min-width: 11rem;
  z-index: 1065;
}

.admin-actions-dropdown {
  position: static;
}

.app-table-scroll-modern .app-data-table td:has(.admin-actions-dropdown) {
  overflow: visible;
}

.admin-actions-dropdown__form {
  margin: 0;
}

.admin-actions-dropdown__form .dropdown-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
