:root {
  --nexum-navy: #0b1f3a;
  --nexum-slate: #1d2f44;
  --nexum-accent: #1a6fb3;
  --nexum-cyan: #2ccbff;
  --nexum-green: #26a93e;
  --nexum-lime: #9cd62f;
  --nexum-surface: #f4f7fb;
  --nexum-border: #e2e8f0;
  --nexum-text: #0f172a;
  --nexum-surface-2: #ffffff;
  --nexum-card-bg: #ffffff;
  --nexum-muted: #5d6f86;
  --nexum-shadow: rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--nexum-text);
  background-color: var(--nexum-surface);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: #fff;
  color: var(--nexum-navy);
  border: 1px solid var(--nexum-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Slab", serif;
}

section[id] {
  scroll-margin-top: 90px;
}

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

.navbar-logo {
  height: 40px;
  width: auto;
}

.nexum-navbar {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexum-nav-primary {
  gap: 4px;
}

.navbar .top-nav-link {
  color: var(--nexum-slate);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.45rem 0.72rem;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.navbar .top-nav-link:hover,
.navbar .top-nav-link:focus {
  color: var(--nexum-accent);
  background: rgba(26, 111, 179, 0.1);
}

.navbar .top-nav-link.active {
  color: var(--nexum-navy);
  background: rgba(26, 111, 179, 0.18);
  box-shadow: inset 0 0 0 1px rgba(26, 111, 179, 0.16);
}

.nexum-nav-more-toggle {
  border: 0;
  background: transparent;
}

.nexum-nav-more-toggle::after {
  margin-left: 0.45rem;
  font-size: 0.72rem;
}

.nexum-nav-more-menu {
  border-radius: 14px;
  border: 1px solid var(--nexum-border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  padding: 0.45rem;
  min-width: 220px;
}

.top-nav-link-secondary {
  font-weight: 600;
}

.nexum-nav-more-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.48rem 0.72rem;
}

.theme-mode-item {
  display: flex;
  align-items: center;
}

.nexum-navbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 1200px) {
  .nexum-navbar-tools {
    margin-top: 0;
  }
}

.theme-mode-item,
.nexum-user-menu-wrap {
  display: flex;
  align-items: center;
}

.theme-mode-toggle {
  min-width: 178px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-mode-menu {
  min-width: 220px;
  border-radius: 14px;
  border: 1px solid var(--nexum-border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.theme-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--nexum-slate);
}

.theme-mode-option .theme-mode-check {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-mode-option.active {
  background: rgba(26, 111, 179, 0.12);
  color: var(--nexum-navy);
}

.theme-mode-option.active .theme-mode-check {
  opacity: 1;
  transform: scale(1);
}

.nexum-user-toggle {
  max-width: min(340px, 56vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nexum-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(26, 111, 179, 0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nexum-accent);
}

.nexum-user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexum-user-menu {
  min-width: 230px;
  border-radius: 14px;
  border: 1px solid var(--nexum-border);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.nexum-user-menu .dropdown-item {
  border-radius: 10px;
  font-weight: 600;
}

.nexum-logout-item {
  color: #b42318;
}

.nexum-logout-item:hover,
.nexum-logout-item:focus {
  color: #8d1d13;
  background: rgba(231, 76, 60, 0.12);
}

.side-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1040;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nexum-slate);
  text-decoration: none;
  font-weight: 600;
}

.side-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(26, 111, 179, 0.35);
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.side-nav-label {
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-nav-link:hover .side-nav-label,
.side-nav-link:focus .side-nav-label,
.side-nav-link.active .side-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-link.active .side-nav-dot {
  background: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
  border-color: transparent;
  transform: scale(1.1);
}

.side-nav-link:focus-visible,
.navbar .nav-link:focus-visible,
.back-to-top:focus-visible,
.floating-cta:focus-visible,
.floating-whatsapp:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid rgba(26, 111, 179, 0.45);
  outline-offset: 2px;
}

.bg-gradient-primary {
  background-image: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
}

.btn.bg-gradient-primary {
  color: #fff;
  border: none;
}

.btn.bg-gradient-primary:hover {
  filter: brightness(0.96);
}

.badge.bg-gradient-primary {
  color: #fff;
}


.hero-section {
  background: radial-gradient(circle at top right, rgba(44, 203, 255, 0.35), transparent 55%),
    radial-gradient(circle at 20% 60%, rgba(38, 169, 62, 0.2), transparent 45%),
    linear-gradient(135deg, #0b1f3a, #132d4f 60%, #0b1f3a);
  color: #fff;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-logo-mark {
  position: absolute;
  right: -120px;
  top: -45px;
  width: 760px;
  opacity: 0.12;
  filter: drop-shadow(0 20px 50px rgba(15, 23, 42, 0.35));
  pointer-events: none;
  z-index: 1;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof-item {
  font-size: 0.78rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-dark {
  background: var(--nexum-navy);
  color: #fff;
}

.stat-number {
  font-size: 1.15rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.section {
  padding: 90px 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--nexum-navy);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--nexum-slate);
  margin-bottom: 20px;
}

.nexum-card {
  border: 1px solid var(--nexum-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .nexum-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  }
}

.contact-card {
  border: 1px solid var(--nexum-border);
}

.contact-benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--nexum-slate);
  font-weight: 500;
}

.contact-trust {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--nexum-border);
  background: #fff;
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--nexum-slate);
  font-weight: 500;
}

.form-intro {
  padding: 12px 0 6px;
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.step-card {
  border: 1px solid var(--nexum-border);
  background: #fff;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(44, 203, 255, 0.14);
  color: var(--nexum-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nexum-slate);
  display: block;
}

.contact-value {
  font-weight: 600;
  color: var(--nexum-navy);
}

.text-sm {
  font-size: 0.875rem;
}

.trust-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--nexum-border);
  background: #fff;
}

.logo-card {
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid var(--nexum-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  background: #f8fafc;
}

.logo-card-img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: saturate(1.05);
}

.logo-card-caption {
  color: #5b6b7f;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.logo-card-note strong {
  color: var(--nexum-navy);
  font-size: 0.92rem;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--nexum-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}

.faq-accordion .accordion-button {
  font-weight: 600;
}

.cta-band {
  background: linear-gradient(120deg, #0b1f3a, #1a6fb3 45%, #26a93e 95%);
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0b1f3a, #1a6fb3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  font-weight: 600;
  z-index: 1050;
}

.floating-cta:hover {
  color: #fff;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, #1b8f39, #26a93e);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  font-weight: 600;
  gap: 8px;
  align-items: center;
  z-index: 1050;
}

.floating-whatsapp:hover {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b1f3a, #1a6fb3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1060;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff;
}

.swal2-container {
  backdrop-filter: blur(4px);
}

.nexum-swal-popup {
  border: 1px solid var(--nexum-border);
  border-radius: 18px;
  padding: 2rem 2rem 1.5rem;
  background: #fff;
  color: var(--nexum-text);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.nexum-swal-title {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  color: var(--nexum-navy);
}

.nexum-swal-text {
  color: var(--nexum-slate);
  font-size: 0.95rem;
}

.swal2-actions {
  gap: 12px;
}

.nexum-swal-confirm,
.nexum-swal-cancel {
  min-width: 120px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.newsletter-page {
  padding-top: 58px;
  min-height: calc(100vh - 220px);
}

.newsletter-create-page {
  background: radial-gradient(circle at top right, rgba(44, 203, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(244, 248, 253, 0.92), var(--nexum-surface) 44%);
}

.newsletter-create-page .btn {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.newsletter-header {
  border: 1px solid var(--nexum-border);
  background: radial-gradient(circle at top right, rgba(44, 203, 255, 0.26), transparent 52%),
    linear-gradient(145deg, #ffffff, #f7fbff 45%, #f2f8ff);
}

.newsletter-create-header {
  border: 1px solid var(--nexum-border);
  background: radial-gradient(circle at top right, rgba(44, 203, 255, 0.2), transparent 56%),
    linear-gradient(145deg, #ffffff, #f9fcff 50%, #f1f8ff);
  position: relative;
  overflow: hidden;
}

.newsletter-create-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(44, 203, 255, 0.2) 100%);
  pointer-events: none;
}

.newsletter-create-page .section-subtitle {
  color: #4e6480;
  font-size: 0.98rem;
}

.newsletter-create-page .form-label {
  color: #1b3550;
  font-weight: 600;
  font-size: 0.9rem;
}

.newsletter-create-page .form-control,
.newsletter-create-page .form-select {
  border: 1px solid #c7d8ea;
  border-radius: 10px;
  min-height: 44px;
  background: #fff;
}

.newsletter-create-page textarea.form-control {
  min-height: 106px;
  resize: vertical;
}

.newsletter-create-page .form-control:focus,
.newsletter-create-page .form-select:focus {
  border-color: #3ca7de;
  box-shadow: 0 0 0 0.2rem rgba(44, 165, 227, 0.18);
}

.newsletter-create-page .validation-summary {
  border: 1px solid #f4c7c9;
  background: #fff2f2;
  border-radius: 12px;
  padding: 12px 14px;
}

.newsletter-create-page .text-danger {
  font-size: 0.82rem;
}

.newsletter-field-help {
  color: #6a8099 !important;
  font-size: 0.84rem;
}

.newsletter-side-stack {
  position: sticky;
  top: 112px;
}

.newsletter-back-btn {
  min-width: 220px;
  border-color: #37a9e3;
  color: #1770a8;
}

.newsletter-create-panel {
  border: 1px solid #d3e1ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.newsletter-panel-heading {
  padding-bottom: 12px;
  border-bottom: 1px dashed #cfe0f2;
}

.newsletter-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nexum-navy);
  margin: 0;
}

.newsletter-panel-subtitle {
  font-size: 0.89rem;
  color: #5e7794;
}

.newsletter-counter {
  font-size: 0.74rem;
  font-weight: 700;
  color: #477194;
  border: 1px solid #d2e3f1;
  border-radius: 999px;
  background: #f4f9fe;
  padding: 3px 8px;
}

.newsletter-publish-toggle {
  background: #f4f9ff;
  border: 1px solid #d2e3f2;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-publish-toggle.form-switch {
  padding-left: 14px;
}

.newsletter-publish-toggle .form-check-input {
  float: none;
  margin: 0;
  width: 2.3em;
  height: 1.2em;
  cursor: pointer;
}

.newsletter-publish-toggle .form-check-label {
  margin: 0;
  font-weight: 600;
  color: #35506b;
}

.newsletter-help-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.newsletter-help-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--nexum-slate);
  font-weight: 500;
  line-height: 1.45;
  font-size: 0.93rem;
}

.newsletter-help-list i {
  color: #1ea672;
  margin-top: 2px;
}

.newsletter-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d3e1ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  position: sticky;
  bottom: 14px;
  z-index: 20;
}

.newsletter-overline {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nexum-accent);
  margin-bottom: 12px;
}

.newsletter-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(26, 111, 179, 0.25);
  background: rgba(26, 111, 179, 0.08);
  color: var(--nexum-slate);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.newsletter-create-btn {
  min-width: 190px;
}

.newsletter-hero {
  border: 1px solid var(--nexum-border);
  background: linear-gradient(140deg, rgba(26, 111, 179, 0.12), rgba(44, 203, 255, 0.1) 55%, rgba(38, 169, 62, 0.08));
}

.newsletter-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(26, 111, 179, 0.45);
  color: var(--nexum-accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  transition: all 0.2s ease;
}

.newsletter-filter-chip:hover {
  transform: translateY(-1px);
  border-color: var(--nexum-accent);
  color: var(--nexum-accent);
}

.newsletter-filter-chip.active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
  box-shadow: 0 10px 24px rgba(26, 111, 179, 0.28);
}

.newsletter-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.newsletter-card,
.newsletter-form,
.newsletter-detail {
  border: 1px solid var(--nexum-border);
}

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

@media (hover: hover) {
  .newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
  }
}

.newsletter-card h2 {
  color: var(--nexum-navy);
}

.newsletter-category {
    background: rgba(26, 111, 179, 0.12);
    color: var(--nexum-accent);
    font-weight: 600;
    align-content: center;
}

.newsletter-date-group {
  min-width: 115px;
}

.newsletter-read-time {
  color: #5c7ea0;
  font-size: 0.77rem;
  font-weight: 600;
}

.newsletter-card-title {
  line-height: 1.25;
}

.newsletter-card-summary {
  line-height: 1.6;
  color: #5d6f86;
}

.newsletter-author {
  font-weight: 600;
  color: var(--nexum-slate);
}

.newsletter-read-btn {
  border: 1px solid rgba(26, 111, 179, 0.45);
  color: var(--nexum-accent);
  font-weight: 700;
}

.newsletter-read-btn:hover {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
}

.newsletter-empty {
  border: 1px dashed var(--nexum-border);
  text-align: center;
  padding: 36px 28px;
}

.newsletter-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(26, 111, 179, 0.12);
  color: var(--nexum-accent);
  font-size: 1.45rem;
}

.newsletter-quill-toolbar {
  border: 1px solid #c7d8ea;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.newsletter-quill-toolbar .ql-formats {
  margin-right: 8px;
}

.newsletter-editor {
  min-height: 300px;
  border: 1px solid #c7d8ea;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.newsletter-editor .ql-editor {
  min-height: 252px;
  font-size: 1rem;
  line-height: 1.72;
}

.newsletter-editor .ql-editor.ql-blank::before {
  color: #7690ab;
  font-style: normal;
}

.newsletter-content.ql-editor {
  padding: 0;
}

.newsletter-detail-page {
  background: radial-gradient(circle at top right, rgba(44, 203, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(244, 248, 253, 0.92), var(--nexum-surface) 48%);
}

.newsletter-reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1080;
  pointer-events: none;
  background: linear-gradient(to right, var(--nexum-cyan), var(--nexum-cyan)) no-repeat;
  background-size: var(--reading-progress, 0%) 100%;
  box-shadow: 0 0 12px rgba(44, 203, 255, 0.4);
}

.newsletter-detail {
  border: 1px solid #d3e1ef;
  border-radius: 20px;
  background: #fff;
}

.newsletter-article-shell {
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 46%, #ffffff 100%);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
}

.newsletter-detail-header {
  border-bottom: 1px dashed #d4e2f1;
  padding-bottom: 20px;
}

.newsletter-back-link {
  display: inline-flex;
  align-items: center;
  color: #2a77ad;
  font-weight: 600;
  text-decoration: none;
}

.newsletter-back-link:hover {
  color: #125f95;
}

.newsletter-detail-date {
  color: #617d9b;
  font-weight: 600;
}

.newsletter-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-detail-title {
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.newsletter-detail-lead {
  color: #4f6782;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: min(100%, 92ch);
}

.newsletter-content-wrapper {
  max-width: 940px;
  margin-inline: auto;
  padding-top: 10px;
}

.newsletter-ad-ins {
  display: block;
}

.newsletter-article-content.ql-editor {
  font-family: "Roboto", sans-serif;
}

.newsletter-content p {
  color: #2a3f55;
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 1.04rem;
  max-width: min(100%, 92ch);
}

.newsletter-content p + p {
  margin-top: -0.2rem;
}

.newsletter-content h2,
.newsletter-content h3 {
  color: #0f2b4a;
  margin-top: 1.9rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.newsletter-content ul,
.newsletter-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.35rem;
  color: #2a3f55;
}

.newsletter-content blockquote {
  border-left: 4px solid #49a7de;
  padding: 0.9rem 1rem;
  margin: 1.2rem 0;
  background: linear-gradient(120deg, #f2f9ff, #edf7ff);
  color: #35516d;
  border-radius: 0 10px 10px 0;
}

.newsletter-content :not(pre) > code {
  background: #e8f1fb;
  color: #0f2b4a;
  border-radius: 7px;
  padding: 0.14rem 0.42rem;
  font-size: 0.9em;
  border: 1px solid #d4e5f7;
}

.newsletter-content .ql-ui {
  display: none !important;
}

.newsletter-code-card {
  border: 1px solid #1f324f;
  border-radius: 16px;
  margin: 1.45rem 0;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  background: #0b1220;
}

.newsletter-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(120deg, #0f172a, #101827);
}

.newsletter-code-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d8e6ff;
}

.newsletter-code-copy {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.newsletter-code-copy:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
}

.newsletter-code-copy i {
  margin-right: 0.35rem;
}

.newsletter-code-card pre[class*="language-"] {
  border: 0;
  margin: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  padding: 16px 18px;
  overflow: auto;
}

.newsletter-content pre[class*="language-"] code[class*="language-"] {
  text-shadow: none;
  font-size: 0.9rem;
  line-height: 1.72;
}

.newsletter-detail-footer {
  margin-top: 6px;
  border-top: 1px solid #d4e2f1;
  padding-top: 18px;
}

.newsletter-footer-author {
  color: #56708b;
  font-weight: 600;
}

.crm-page {
  padding-top: 48px;
}

.crm-dashboard-header {
  padding: 14px 0 8px;
}

.crm-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nexum-accent);
}

.crm-dashboard-title {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  color: var(--nexum-navy);
  line-height: 1.15;
}

.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.crm-dashboard-actions {
  border: 1px solid var(--nexum-border);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(26, 111, 179, 0.08), rgba(26, 111, 179, 0.02) 44%, rgba(45, 173, 232, 0.1));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.1rem 1.05rem;
}

.crm-dashboard-actions-header h2 {
  color: var(--nexum-navy);
}

.crm-dashboard-actions-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.crm-dashboard-create-btn {
  justify-content: center;
  padding: 0.58rem 0.72rem;
  font-size: 0.83rem;
}

.crm-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(26, 111, 179, 0.35);
  border-radius: 12px;
  background: rgba(26, 111, 179, 0.06);
  color: var(--nexum-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  padding: 0.56rem 0.82rem;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.crm-toolbar-link i {
  font-size: 0.92rem;
}

.crm-toolbar-link:hover,
.crm-toolbar-link:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
  border-color: transparent;
  transform: translateY(-1px);
}

.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.crm-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 152px;
  border: 1px solid var(--nexum-border);
  border-radius: 16px;
  background: var(--nexum-card-bg);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.crm-kpi-label {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nexum-muted);
  font-weight: 700;
}

.crm-kpi-value {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  color: var(--nexum-navy);
  font-weight: 700;
  line-height: 1.1;
}

.crm-kpi-breakdown {
  color: var(--nexum-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.crm-kpi-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--nexum-accent);
  font-weight: 600;
  text-decoration: none;
}

.crm-kpi-link:hover,
.crm-kpi-link:focus {
  color: #125f95;
}

.crm-panel {
  border: 1px solid var(--nexum-border);
  border-radius: 16px;
  background: var(--nexum-card-bg);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.crm-panel-body {
  padding: 1.25rem 1.35rem;
}

.crm-pipeline-table thead th {
  color: #56708b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-pipeline-table tfoot th {
  color: var(--nexum-navy);
}

.crm-stage-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(26, 111, 179, 0.34);
  background: rgba(26, 111, 179, 0.08);
  color: var(--nexum-slate);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.27rem 0.62rem;
}

.crm-empty-note {
  margin-top: 10px;
  color: var(--nexum-muted);
  font-size: 0.92rem;
}

.crm-page-header {
  padding: 6px 0;
}

.crm-page-title {
  color: var(--nexum-navy);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.crm-back-btn {
  border-color: rgba(26, 111, 179, 0.42);
  color: var(--nexum-accent);
  font-weight: 600;
}

.crm-back-btn:hover,
.crm-back-btn:focus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--nexum-accent), var(--nexum-cyan));
}

.crm-page .alert {
  border-radius: 12px;
}

.crm-page .alert-success {
  border-color: rgba(44, 144, 86, 0.25);
  background: rgba(38, 169, 62, 0.12);
}

.crm-page .alert-danger {
  border-color: rgba(179, 72, 72, 0.26);
  background: rgba(217, 72, 72, 0.1);
}

.crm-page .crm-panel {
  border: 1px solid var(--nexum-border);
}

.crm-page .crm-panel-body {
  padding: 1.1rem 1.2rem;
}

.crm-form-grid .form-label {
  color: #1b3550;
  font-weight: 600;
  font-size: 0.9rem;
}

.crm-form-grid .form-control,
.crm-form-grid .form-select,
.crm-filter-form .form-control,
.crm-filter-form .form-select {
  min-height: 44px;
  border-radius: 10px;
}

.crm-filter-form {
  border: 1px solid var(--nexum-border);
  border-radius: 14px;
  background: var(--nexum-card-bg);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.crm-action-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--nexum-border);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(26, 111, 179, 0.08), rgba(26, 111, 179, 0.02) 45%, rgba(45, 173, 232, 0.08));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  padding: 0.95rem 1.1rem;
}

.crm-action-strip h2 {
  color: var(--nexum-navy);
}

.crm-action-strip-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nexum-accent);
}

.crm-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(26, 111, 179, 0.22);
}

.crm-create-btn i {
  font-size: 0.86rem;
}

.crm-offcanvas {
  --bs-offcanvas-width: min(540px, 100vw);
  background: var(--nexum-card-bg);
  border-left: 1px solid var(--nexum-border);
}

.crm-offcanvas .offcanvas-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--nexum-border);
  padding: 1rem 1.15rem 0.95rem;
}

.crm-offcanvas .offcanvas-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.crm-drawer-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--nexum-accent);
}

.crm-drawer-form .form-label {
  color: #1c3752;
  font-weight: 600;
  font-size: 0.86rem;
}

.crm-drawer-form .form-control,
.crm-drawer-form .form-select {
  min-height: 44px;
  border-radius: 10px;
}

.crm-drawer-form textarea.form-control {
  min-height: 120px;
}

.crm-drawer-footer {
  margin-top: 0.15rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--nexum-border);
}

.crm-filter-form .form-label {
  color: #44607d;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.32rem;
}

.crm-table thead th {
  color: #5d7794;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.crm-table tbody td {
  color: var(--nexum-slate);
}

.crm-table tbody td a {
  font-weight: 600;
  color: var(--nexum-accent);
  text-decoration: none;
}

.crm-table tbody td a:hover,
.crm-table tbody td a:focus {
  text-decoration: underline;
}

.crm-contacts-table th:last-child,
.crm-contacts-table td:last-child {
  min-width: 190px;
}

.crm-data-table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.crm-contact-action-btn {
  min-width: 86px;
}

.crm-panel .dt-container .dt-search input,
.crm-panel .dataTables_wrapper .dataTables_filter input {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--nexum-border);
  padding: 0.35rem 0.72rem;
}

.crm-panel .dt-container .dt-length select,
.crm-panel .dataTables_wrapper .dataTables_length select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--nexum-border);
}

.crm-panel .dt-container .dt-search label,
.crm-panel .dt-container .dt-length label,
.crm-panel .dt-container .dt-info,
.crm-panel .dataTables_wrapper .dataTables_filter label,
.crm-panel .dataTables_wrapper .dataTables_length label,
.crm-panel .dataTables_wrapper .dataTables_info {
  color: #5d7794;
  font-size: 0.84rem;
  font-weight: 600;
}

.crm-inline-form {
  background: rgba(26, 111, 179, 0.03);
  border-color: rgba(26, 111, 179, 0.2) !important;
}

.crm-pagination-wrap {
  display: flex;
  justify-content: flex-end;
}

.crm-pagination .page-link {
  border-radius: 10px;
}

.crm-pagination .page-item + .page-item {
  margin-left: 6px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --nexum-navy: #e5efff;
  --nexum-slate: #c7d7ef;
  --nexum-accent: #56b4ff;
  --nexum-cyan: #78d8ff;
  --nexum-green: #39ca62;
  --nexum-lime: #9fdd43;
  --nexum-surface: #0b1322;
  --nexum-surface-2: #111a2b;
  --nexum-card-bg: #111a2b;
  --nexum-border: #2a3c56;
  --nexum-text: #edf4ff;
  --nexum-muted: #9eb2cf;
  --nexum-shadow: rgba(3, 7, 18, 0.5);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(86, 180, 255, 0.14), transparent 33%),
    linear-gradient(180deg, #0b1322 0%, #0d1628 52%, #0b1322 100%);
  color: var(--nexum-text);
}

:root[data-theme="dark"] .skip-link {
  background: #0f1a2d;
  color: var(--nexum-text);
  border-color: var(--nexum-border);
}

:root[data-theme="dark"] .navbar {
  background: rgba(11, 19, 34, 0.82) !important;
  border: 1px solid rgba(86, 180, 255, 0.18);
  box-shadow: 0 14px 32px rgba(2, 8, 20, 0.45);
}

:root[data-theme="dark"] .navbar .top-nav-link {
  color: #d6e5ff;
}

:root[data-theme="dark"] .navbar .top-nav-link:hover,
:root[data-theme="dark"] .navbar .top-nav-link:focus,
:root[data-theme="dark"] .nexum-nav-more-menu .dropdown-item:hover,
:root[data-theme="dark"] .nexum-nav-more-menu .dropdown-item:focus,
:root[data-theme="dark"] .theme-mode-option:hover,
:root[data-theme="dark"] .nexum-user-menu .dropdown-item:hover,
:root[data-theme="dark"] .nexum-user-menu .dropdown-item:focus {
  color: #84d8ff;
  background: rgba(86, 180, 255, 0.12);
}

:root[data-theme="dark"] .navbar .top-nav-link.active,
:root[data-theme="dark"] .nexum-nav-more-toggle.active,
:root[data-theme="dark"] .theme-mode-option.active {
  background: rgba(86, 180, 255, 0.2);
  color: #f3f8ff;
}

:root[data-theme="dark"] .theme-mode-menu {
  background: #111a2b;
  border-color: var(--nexum-border);
}

:root[data-theme="dark"] .nexum-nav-more-menu,
:root[data-theme="dark"] .nexum-user-menu {
  background: #111a2b;
  border-color: var(--nexum-border);
}

:root[data-theme="dark"] .theme-mode-option,
:root[data-theme="dark"] .nexum-nav-more-menu .dropdown-item,
:root[data-theme="dark"] .nexum-user-menu .dropdown-item {
  color: #d8e7ff;
}

:root[data-theme="dark"] .nexum-user-avatar {
  background: rgba(86, 180, 255, 0.2);
  color: #bce9ff;
}

:root[data-theme="dark"] .nexum-logout-item {
  color: #ffbab7;
}

:root[data-theme="dark"] .nexum-logout-item:hover,
:root[data-theme="dark"] .nexum-logout-item:focus {
  color: #ffd6d4;
  background: rgba(248, 113, 113, 0.16);
}

:root[data-theme="dark"] .section-subtitle,
:root[data-theme="dark"] .newsletter-card-summary,
:root[data-theme="dark"] .newsletter-detail-lead,
:root[data-theme="dark"] .newsletter-panel-subtitle,
:root[data-theme="dark"] .newsletter-field-help,
:root[data-theme="dark"] .nexum-swal-text,
:root[data-theme="dark"] .text-muted {
  color: var(--nexum-muted) !important;
}

:root[data-theme="dark"] .section.bg-white,
:root[data-theme="dark"] .section.bg-gray-100 {
  background:
    radial-gradient(circle at top right, rgba(86, 180, 255, 0.1), transparent 36%),
    linear-gradient(180deg, #0f1a2d 0%, #0d1728 100%) !important;
}

:root[data-theme="dark"] .nexum-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .contact-trust,
:root[data-theme="dark"] .trust-highlight,
:root[data-theme="dark"] .step-card,
:root[data-theme="dark"] .logo-card,
:root[data-theme="dark"] .faq-accordion .accordion-item,
:root[data-theme="dark"] .newsletter-card,
:root[data-theme="dark"] .newsletter-detail,
:root[data-theme="dark"] .newsletter-create-panel,
:root[data-theme="dark"] .newsletter-empty,
:root[data-theme="dark"] .newsletter-action-bar,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .nexum-swal-popup {
  background: var(--nexum-card-bg);
  border-color: var(--nexum-border);
  color: var(--nexum-text);
  box-shadow: 0 20px 36px var(--nexum-shadow);
}

:root[data-theme="dark"] .crm-toolbar-link {
  border-color: rgba(120, 216, 255, 0.4);
  background: rgba(86, 180, 255, 0.14);
  color: #d8e7ff;
}

:root[data-theme="dark"] .crm-dashboard-actions {
  border-color: #2d4468;
  background:
    linear-gradient(120deg, rgba(86, 180, 255, 0.2), rgba(86, 180, 255, 0.08) 42%, rgba(120, 216, 255, 0.16));
  box-shadow: 0 18px 32px rgba(2, 8, 20, 0.4);
}

:root[data-theme="dark"] .crm-dashboard-actions-header h2 {
  color: var(--nexum-text);
}

:root[data-theme="dark"] .crm-toolbar-link:hover,
:root[data-theme="dark"] .crm-toolbar-link:focus {
  color: #0b1322;
}

:root[data-theme="dark"] .crm-kpi-label,
:root[data-theme="dark"] .crm-kpi-breakdown,
:root[data-theme="dark"] .crm-empty-note {
  color: var(--nexum-muted);
}

:root[data-theme="dark"] .crm-back-btn {
  border-color: rgba(120, 216, 255, 0.5);
  color: #bde8ff;
}

:root[data-theme="dark"] .crm-back-btn:hover,
:root[data-theme="dark"] .crm-back-btn:focus {
  color: #0b1322;
}

:root[data-theme="dark"] .crm-page .alert-success {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.14);
  color: #d8ffef;
}

:root[data-theme="dark"] .crm-page .alert-danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.16);
  color: #ffe5e5;
}

:root[data-theme="dark"] .crm-form-grid .form-label,
:root[data-theme="dark"] .crm-filter-form .form-label {
  color: #b5cae7;
}

:root[data-theme="dark"] .crm-filter-form {
  background: #101a2d;
  border-color: #2d4468;
  box-shadow: 0 16px 28px rgba(2, 8, 20, 0.42);
}

:root[data-theme="dark"] .crm-action-strip {
  border-color: #2d4468;
  background:
    linear-gradient(120deg, rgba(86, 180, 255, 0.16), rgba(86, 180, 255, 0.06) 44%, rgba(120, 216, 255, 0.14));
  box-shadow: 0 18px 34px rgba(2, 8, 20, 0.4);
}

:root[data-theme="dark"] .crm-action-strip h2 {
  color: var(--nexum-text);
}

:root[data-theme="dark"] .crm-create-btn {
  box-shadow: 0 14px 22px rgba(3, 7, 18, 0.45);
}

:root[data-theme="dark"] .crm-offcanvas {
  background: #101a2d;
  border-left-color: #2d4468;
  color: var(--nexum-text);
}

:root[data-theme="dark"] .crm-offcanvas .offcanvas-header,
:root[data-theme="dark"] .crm-drawer-footer {
  border-color: #2d4468;
}

:root[data-theme="dark"] .crm-drawer-form .form-label {
  color: #c5d8f2;
}

:root[data-theme="dark"] .crm-offcanvas .text-muted,
:root[data-theme="dark"] .crm-drawer-form .form-text {
  color: #9eb2cf !important;
}

:root[data-theme="dark"] .crm-panel .dt-container .dt-search input,
:root[data-theme="dark"] .crm-panel .dataTables_wrapper .dataTables_filter input,
:root[data-theme="dark"] .crm-panel .dt-container .dt-length select,
:root[data-theme="dark"] .crm-panel .dataTables_wrapper .dataTables_length select {
  background: #101a2d;
  border-color: #2d4468;
  color: var(--nexum-text);
}

:root[data-theme="dark"] .crm-panel .dt-container .dt-search label,
:root[data-theme="dark"] .crm-panel .dt-container .dt-length label,
:root[data-theme="dark"] .crm-panel .dt-container .dt-info,
:root[data-theme="dark"] .crm-panel .dataTables_wrapper .dataTables_filter label,
:root[data-theme="dark"] .crm-panel .dataTables_wrapper .dataTables_length label,
:root[data-theme="dark"] .crm-panel .dataTables_wrapper .dataTables_info {
  color: #b5cae7;
}

:root[data-theme="dark"] .crm-inline-form {
  background: rgba(86, 180, 255, 0.08);
  border-color: rgba(120, 216, 255, 0.35) !important;
}

:root[data-theme="dark"] .crm-stage-chip {
  border-color: rgba(120, 216, 255, 0.5);
  background: rgba(86, 180, 255, 0.16);
  color: #d8e7ff;
}

:root[data-theme="dark"] .crm-pipeline-table thead th,
:root[data-theme="dark"] .crm-pipeline-table tfoot th {
  color: #d8e7ff;
}

:root[data-theme="dark"] #clientes .text-dark,
:root[data-theme="dark"] #processo .text-dark,
:root[data-theme="dark"] #sobre .text-dark,
:root[data-theme="dark"] #servicos .text-dark,
:root[data-theme="dark"] #diferenciais .text-dark,
:root[data-theme="dark"] #faq .text-dark,
:root[data-theme="dark"] #contato .text-dark,
:root[data-theme="dark"] .nexum-card .text-dark,
:root[data-theme="dark"] .trust-highlight .text-dark,
:root[data-theme="dark"] .stat-card .text-dark {
  color: var(--nexum-text) !important;
}

:root[data-theme="dark"] .logo-card-caption {
  color: #a8c0e0;
}

:root[data-theme="dark"] .logo-card-note strong {
  color: #e8f1ff;
}

:root[data-theme="dark"] .newsletter-header,
:root[data-theme="dark"] .newsletter-create-header,
:root[data-theme="dark"] .newsletter-article-shell {
  border-color: var(--nexum-border);
  background:
    radial-gradient(circle at top right, rgba(86, 180, 255, 0.2), transparent 58%),
    linear-gradient(145deg, #121d31, #101a2b 48%, #0d1728);
}

:root[data-theme="dark"] .newsletter-detail-page {
  background:
    radial-gradient(circle at top right, rgba(86, 180, 255, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(120, 216, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #0e1728 0%, #0c1526 100%);
}

:root[data-theme="dark"] .hero-section .card.blur {
  background: rgba(15, 26, 45, 0.9) !important;
  border: 1px solid rgba(120, 216, 255, 0.24);
  box-shadow: 0 20px 38px rgba(3, 7, 18, 0.45);
}

:root[data-theme="dark"] .hero-section .card.blur .text-dark,
:root[data-theme="dark"] .hero-section .card.blur h5,
:root[data-theme="dark"] .hero-section .card.blur h6,
:root[data-theme="dark"] .hero-section .card.blur p,
:root[data-theme="dark"] .hero-section .card.blur .stat-number,
:root[data-theme="dark"] .hero-section .card.blur .stat-label {
  color: #e8f1ff !important;
}

:root[data-theme="dark"] .hero-section .card.blur .stat-card {
  background: #12213a;
  border: 1px solid rgba(120, 216, 255, 0.22);
}

:root[data-theme="dark"] .newsletter-content {
  color: #dbe9ff !important;
}

:root[data-theme="dark"] .newsletter-create-header::after {
  background: linear-gradient(90deg, transparent 56%, rgba(86, 180, 255, 0.22) 100%);
}

:root[data-theme="dark"] .newsletter-detail-header,
:root[data-theme="dark"] .newsletter-detail-footer,
:root[data-theme="dark"] .newsletter-panel-heading {
  border-color: rgba(122, 150, 188, 0.32);
}

:root[data-theme="dark"] .newsletter-meta-chip {
  border-color: rgba(86, 180, 255, 0.4);
  background: rgba(86, 180, 255, 0.16);
  color: #d8e7ff;
}

:root[data-theme="dark"] .newsletter-filter-chip,
:root[data-theme="dark"] .newsletter-read-btn {
  border-color: rgba(120, 216, 255, 0.6);
  color: #8fddff;
}

:root[data-theme="dark"] .newsletter-filter-chip:hover,
:root[data-theme="dark"] .newsletter-read-btn:hover {
  color: #0b1322;
}

:root[data-theme="dark"] .newsletter-category {
  background: rgba(120, 216, 255, 0.18);
  color: #9be4ff;
}

:root[data-theme="dark"] .newsletter-content p,
:root[data-theme="dark"] .newsletter-content div,
:root[data-theme="dark"] .newsletter-content span,
:root[data-theme="dark"] .newsletter-content ul,
:root[data-theme="dark"] .newsletter-content ol,
:root[data-theme="dark"] .newsletter-content h1,
:root[data-theme="dark"] .newsletter-content h2,
:root[data-theme="dark"] .newsletter-content h3,
:root[data-theme="dark"] .newsletter-content h4,
:root[data-theme="dark"] .newsletter-content h5,
:root[data-theme="dark"] .newsletter-content h6,
:root[data-theme="dark"] .newsletter-content li {
  color: #d8e7ff;
}

:root[data-theme="dark"] .newsletter-content [style*="color"] {
  color: #d8e7ff !important;
}

:root[data-theme="dark"] .newsletter-content blockquote {
  background: linear-gradient(120deg, rgba(86, 180, 255, 0.14), rgba(86, 180, 255, 0.08));
  color: #cfe2ff;
  border-left-color: #78d8ff;
}

:root[data-theme="dark"] .newsletter-content :not(pre) > code {
  background: #182841;
  color: #b9deff;
  border-color: #2d446a;
}

:root[data-theme="dark"] .newsletter-create-page .form-control,
:root[data-theme="dark"] .newsletter-create-page .form-select,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
  background: #0f1a2d;
  border-color: #2e4568;
  color: #e8f0ff;
}

:root[data-theme="dark"] .newsletter-create-page .form-control:focus,
:root[data-theme="dark"] .newsletter-create-page .form-select:focus,
:root[data-theme="dark"] .form-control:focus,
:root[data-theme="dark"] .form-select:focus {
  border-color: #56b4ff;
  box-shadow: 0 0 0 0.2rem rgba(86, 180, 255, 0.2);
}

:root[data-theme="dark"] .newsletter-quill-toolbar,
:root[data-theme="dark"] .newsletter-editor {
  background: #0f1a2d;
  border-color: #2e4568;
}

:root[data-theme="dark"] .newsletter-editor .ql-editor.ql-blank::before {
  color: #7e9bc0;
}

:root[data-theme="dark"] .newsletter-counter,
:root[data-theme="dark"] .newsletter-publish-toggle {
  background: #12223a;
  border-color: #2f476b;
  color: #b7ceea;
}

:root[data-theme="dark"] .newsletter-detail-date,
:root[data-theme="dark"] .newsletter-read-time,
:root[data-theme="dark"] .newsletter-footer-author,
:root[data-theme="dark"] .newsletter-author {
  color: #a6bddb;
}

:root[data-theme="dark"] .newsletter-back-link {
  color: #91dfff;
}

:root[data-theme="dark"] .newsletter-back-link:hover {
  color: #b7ecff;
}

:root[data-theme="dark"] .faq-accordion .accordion-button {
  background: #132037;
  color: #e3eeff;
}

:root[data-theme="dark"] .faq-accordion .accordion-button:not(.collapsed) {
  background: #182742;
  color: #f2f7ff;
  box-shadow: inset 0 -1px 0 rgba(86, 180, 255, 0.15);
}

:root[data-theme="dark"] .faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(86, 180, 255, 0.2);
}

:root[data-theme="dark"] .faq-accordion .accordion-button::after {
  filter: invert(1) brightness(1.4);
}

:root[data-theme="dark"] .faq-accordion .accordion-body {
  color: var(--nexum-muted);
}

:root[data-theme="dark"] .floating-cta,
:root[data-theme="dark"] .back-to-top {
  box-shadow: 0 14px 30px rgba(2, 8, 20, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1199.98px) {
  .nexum-nav-primary {
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .navbar .top-nav-link {
    padding: 0.58rem 0.8rem;
  }

  .nexum-nav-more-menu {
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 100%;
    padding: 0.25rem 0 0.25rem 0.8rem;
  }

  .nexum-nav-more-menu .dropdown-item {
    padding: 0.45rem 0.65rem;
  }

  .nexum-navbar-tools {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
  }

  .theme-mode-item,
  .nexum-user-menu-wrap {
    width: 100%;
  }

  .theme-mode-toggle,
  .nexum-user-toggle,
  .nexum-navbar-tools > .btn {
    width: 100%;
    justify-content: space-between;
  }

  .nexum-user-name {
    max-width: calc(100% - 46px);
  }

  :root[data-theme="dark"] .nexum-nav-primary,
  :root[data-theme="dark"] .nexum-navbar-tools {
    border-color: rgba(86, 180, 255, 0.22);
  }

  .crm-dashboard-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .trust-highlight {
    grid-template-columns: 1fr;
  }

  .hero-logo-mark {
    width: 420px;
    right: -180px;
    top: -30px;
  }

  .nexum-navbar {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .navbar-logo {
    height: 28px;
  }

  .theme-mode-item {
    width: 100%;
    margin: 0;
  }

  .theme-mode-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nexum-user-toggle {
    max-width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 88px;
    width: 44px;
    height: 44px;
  }

  .newsletter-filters .btn {
    flex: 1 1 auto;
  }

  .newsletter-page {
    padding-top: 28px;
  }

  .newsletter-side-stack {
    position: static;
  }

  .newsletter-header-meta {
    gap: 8px;
  }

  .newsletter-meta-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .newsletter-create-btn {
    width: 100%;
  }

  .newsletter-back-btn {
    width: 100%;
  }

  .newsletter-filter-scroll {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .newsletter-filter-chip {
    white-space: nowrap;
  }

  .newsletter-editor {
    min-height: 260px;
  }

  .newsletter-editor .ql-editor {
    min-height: 214px;
  }

  .newsletter-detail-actions {
    width: 100%;
  }

  .newsletter-detail-actions .btn {
    flex: 1 1 auto;
  }

  .newsletter-reading-progress {
    top: 58px;
  }

  .newsletter-code-header {
    padding: 10px 12px;
  }

  .newsletter-code-copy {
    font-size: 0.74rem;
    padding: 0.32rem 0.56rem;
  }

  .newsletter-code-card pre[class*="language-"] {
    padding: 14px;
  }

  .newsletter-action-bar {
    flex-direction: column-reverse;
  }

  .newsletter-action-bar .btn {
    width: 100%;
  }

  .crm-toolbar {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .crm-toolbar-link {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .crm-page-header {
    align-items: flex-start !important;
  }

  .crm-back-btn {
    width: 100%;
  }

  .crm-action-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-create-btn {
    width: 100%;
    justify-content: center;
  }

  .crm-dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-filter-form .col-auto,
  .crm-form-grid .col-auto {
    width: 100%;
  }

  .crm-filter-form .btn,
  .crm-form-grid .btn {
    width: 100%;
  }

  .crm-pagination-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .crm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-panel-body {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .crm-page {
    padding-top: 32px;
  }

  .crm-action-strip {
    padding: 0.9rem 0.95rem;
  }

  .crm-offcanvas {
    --bs-offcanvas-width: 100vw;
  }

  .crm-drawer-footer {
    flex-direction: column-reverse;
    border-top: 0;
    padding-top: 0;
  }

  .crm-drawer-footer .btn {
    width: 100%;
  }

  .crm-data-table-actions {
    justify-content: stretch;
  }

  .crm-contact-action-btn {
    width: 100%;
  }

  .crm-dashboard-actions {
    padding: 0.9rem 0.95rem;
  }

  .crm-dashboard-actions-grid {
    grid-template-columns: 1fr;
  }

  .crm-kpi-grid {
    grid-template-columns: 1fr;
  }

  .crm-kpi-card {
    min-height: 136px;
  }

  .crm-page .crm-panel-body {
    padding: 1rem;
  }
}
