.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(12, 38, 75, 0.94);
  backdrop-filter: blur(6px);
  color: #fff;
  z-index: 2100;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cta-bar.is-visible {
  transform: translateY(0);
}

/* Prevent fixed sticky CTA from covering page content */
body.has-sticky-cta {
  padding-bottom: var(--sticky-cta-safe, 96px);
}

/* On smaller screens the bar can wrap to 2 lines — allow a bit more safe area */
@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: var(--sticky-cta-safe, 140px);
  }
}
.sticky-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sticky-cta-text {
  font-size: 15px;
  font-weight: 600;
  flex: 1 1 220px;
}
.sticky-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sticky-cta-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sticky-cta-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.sticky-cta-close:focus-visible {
  outline: 2px solid #8fd3ff;
  outline-offset: 2px;
}
.sticky-cta-btn {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sticky-cta-btn.primary {
  background: linear-gradient(90deg, #0a5cff, #05c3ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 92, 255, 0.35);
}
.sticky-cta-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.sticky-cta-btn:focus-visible {
  outline: 2px solid #8fd3ff;
  outline-offset: 2px;
}
.sticky-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.exit-intent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-intent-overlay.is-visible {
  display: flex;
}
.exit-intent-modal {
  background: #0f1c33;
  color: #fff;
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.exit-intent-modal h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.exit-intent-modal p {
  margin-top: 0;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.exit-intent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.exit-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.exit-close:focus-visible {
  outline: 2px solid #8fd3ff;
  outline-offset: 2px;
}

/* Demo dashboard & inline tools */
.demo-dashboard {
  background: #0b2540;
  color: #f8fbff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  margin: 24px 0;
}

/* Demo dashboard: advanced interactions (no success animations) */
.demo-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px 0;
}
.demo-selectors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.demo-selectors label {
  font-size: 12px;
  color: #c9d7e8;
  display: flex;
  gap: 6px;
  align-items: center;
}
.demo-selectors select {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.demo-selectors option {
  color: #0b2540;
}

.demo-card {
  cursor: pointer;
}
.demo-card:focus-visible {
  outline: 2px solid #8fd3ff;
  outline-offset: 2px;
}
.demo-card.is-active {
  border-color: rgba(5, 195, 255, 0.55);
  box-shadow: 0 10px 24px rgba(5, 195, 255, 0.15);
}

.demo-tooltip {
  position: relative;
}
.demo-tooltip[data-tooltip]:hover::after,
.demo-tooltip[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: rgba(15, 28, 51, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  max-width: 240px;
  z-index: 5;
  white-space: normal;
}

.demo-detail {
  display: none;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}
.demo-detail.is-visible {
  display: block;
}
.demo-detail-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.demo-detail-title {
  font-weight: 800;
  color: #e2e8f0;
}
.demo-detail-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}
.demo-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.demo-kv {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 10px;
}
.demo-kv .k {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}
.demo-kv .v {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.demo-mini-chart {
  cursor: pointer;
}
.demo-mini-chart.is-expanded .demo-mini-chart-bars {
  grid-template-columns: repeat(8, 1fr);
}
.demo-mini-chart-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 10px;
}

.demo-alert {
  justify-content: space-between;
}
.demo-alert button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
  flex: 0 0 auto;
}
.demo-alert.is-resolved {
  opacity: 0.7;
}

/* Gate "See full dashboard" CTA only when JS is active */
.demo-dashboard.has-js [data-demo-cta] {
  display: none !important;
}
.demo-dashboard.has-js.is-engaged [data-demo-cta] {
  display: inline-flex !important;
}
.demo-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.demo-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fbff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}
.demo-filter-btn.is-active {
  background: linear-gradient(90deg, #0a5cff, #05c3ff);
  border-color: transparent;
}
.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.demo-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}
.demo-card h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #c9d7e8;
}
.demo-card .demo-value {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}
.demo-card .demo-sub {
  font-size: 12px;
  color: #a7b8cc;
  margin: 0;
}
.demo-mini-chart {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.demo-mini-chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
}
.demo-bar {
  background: linear-gradient(180deg, #05c3ff, #0a5cff);
  border-radius: 6px 6px 2px 2px;
  height: 20px;
  transition: height 0.3s ease;
}
.demo-alerts {
  display: grid;
  gap: 8px;
}
.demo-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #dbe7f5;
}

.inline-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.inline-tool {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(12, 38, 75, 0.08);
}
.inline-tool h3 {
  margin: 0 0 8px 0;
  color: #0b2540;
}
.inline-tool p {
  margin: 0 0 12px 0;
  color: #4a5568;
  font-size: 14px;
}
.inline-tool label {
  display: block;
  font-weight: 600;
  color: #0b2540;
  margin-bottom: 4px;
  font-size: 13px;
}
.inline-tool input,
.inline-tool textarea,
.inline-tool select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.inline-tool .result {
  font-weight: 700;
  color: #0b2540;
  font-size: 14px;
}

/* Engagement & scroll enhancements */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.infographic-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(12, 38, 75, 0.08);
}
.infographic-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #0b2540;
}
.infographic-value {
  font-size: 26px;
  font-weight: 700;
  color: #0b2540;
  margin: 0 0 6px 0;
}
.infographic-sub {
  font-size: 13px;
  color: #4a5568;
  margin: 0 0 8px 0;
}
.infographic-bar {
  background: #edf2f7;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}
.infographic-fill {
  background: linear-gradient(90deg, #0a5cff, #05c3ff);
  height: 100%;
  width: 0;
  transition: width 0.6s ease;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.engagement-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(12, 38, 75, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.engagement-card .eng-icon {
  font-size: 20px;
}
.engagement-card h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #0b2540;
}
.engagement-card p {
  margin: 0;
  font-size: 13px;
  color: #4a5568;
}
.engagement-hidden {
  display: none;
}
.engagement-load-more {
  margin-top: 12px;
}

