/**
 * Shared Chrome extension install promo + exit-intent.
 * Navy / cyan card aligned with homepage theme v2.
 */
.cs-ext-promo {
  --cs-ext-navy: #0a1324;
  --cs-ext-deep: #050a14;
  --cs-ext-blue: #1677ff;
  --cs-ext-sky: #4db3ff;
  --cs-ext-ink: #f2f4f7;
  --cs-ext-muted: rgba(242, 244, 247, 0.78);
  --cs-ext-border: rgba(77, 179, 255, 0.28);
  --cs-ext-panel: rgba(22, 119, 255, 0.12);
  padding: 20px 0;
  font-family: Montserrat, "Segoe UI", sans-serif;
}

.cs-ext-promo__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 28px 32px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--cs-ext-ink);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(22, 119, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(77, 179, 255, 0.14) 0%, transparent 50%),
    linear-gradient(145deg, #0c1a30 0%, var(--cs-ext-navy) 48%, var(--cs-ext-deep) 100%);
  border: 1px solid var(--cs-ext-border);
  box-shadow:
    0 12px 36px rgba(5, 10, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cs-ext-promo__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 78% 18%, rgba(77, 179, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 62% 72%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(77, 179, 255, 0.4), transparent);
  opacity: 0.7;
}

.cs-ext-promo__brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 280px;
  min-width: 0;
  padding-right: 28px;
}

.cs-ext-promo__fox {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--cs-ext-panel);
  border: 1px solid var(--cs-ext-border);
  box-shadow: 0 8px 20px rgba(5, 10, 20, 0.35);
}

.cs-ext-promo__copy {
  min-width: 0;
}

.cs-ext-promo p.cs-ext-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-ext-sky);
  background: rgba(22, 119, 255, 0.16);
  border: 1px solid rgba(77, 179, 255, 0.28);
}

.cs-ext-promo h2.cs-ext-promo__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.cs-ext-promo p.cs-ext-promo__text {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(242, 244, 247, 0.88);
  font-weight: 500;
}

.cs-ext-promo__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 200px;
}

.cs-ext-promo__cta,
.cs-ext-intent__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--cs-ext-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 2px solid var(--cs-ext-blue);
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-ext-promo__cta-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cs-ext-promo__cta-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.cs-ext-promo__cta:hover,
.cs-ext-intent__cta:hover {
  background: transparent;
  color: var(--cs-ext-sky) !important;
  border-color: var(--cs-ext-sky);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.28);
}

.cs-ext-promo__cta:focus-visible,
.cs-ext-intent__cta:focus-visible,
.cs-ext-promo__later:focus-visible,
.cs-ext-intent__skip:focus-visible,
.cs-ext-promo__dismiss:focus-visible,
.cs-ext-intent__close:focus-visible {
  outline: 3px solid var(--cs-ext-sky);
  outline-offset: 3px;
}

.cs-ext-promo__later,
.cs-ext-intent__skip {
  background: transparent;
  border: none;
  color: rgba(242, 244, 247, 0.72);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cs-ext-promo__later:hover,
.cs-ext-intent__skip:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cs-ext-promo__dismiss,
.cs-ext-intent__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 244, 247, 0.75);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cs-ext-promo__dismiss:hover,
.cs-ext-intent__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Exit-intent modal */
.cs-ext-intent {
  --cs-ext-navy: #0a1324;
  --cs-ext-deep: #050a14;
  --cs-ext-blue: #1677ff;
  --cs-ext-sky: #4db3ff;
  --cs-ext-ink: #f2f4f7;
  --cs-ext-muted: rgba(242, 244, 247, 0.78);
  --cs-ext-border: rgba(77, 179, 255, 0.28);
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Montserrat, "Segoe UI", sans-serif;
}

.cs-ext-intent[hidden],
.cs-ext-promo[hidden] {
  display: none !important;
}

.cs-ext-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(2px);
}

.cs-ext-intent__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;
  color: var(--cs-ext-ink);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 119, 255, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #0c1a30 0%, var(--cs-ext-navy) 100%);
  border-radius: 18px;
  border: 1px solid var(--cs-ext-border);
  text-align: center;
  box-shadow: 0 22px 56px rgba(5, 10, 20, 0.55);
  animation: cs-ext-in 0.28s ease-out;
}

@keyframes cs-ext-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs-ext-intent__fox {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(5, 10, 20, 0.4);
  border: 1px solid var(--cs-ext-border);
}

.cs-ext-intent__eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-ext-sky);
  background: rgba(22, 119, 255, 0.16);
  border: 1px solid rgba(77, 179, 255, 0.28);
}

.cs-ext-intent__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.cs-ext-intent__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cs-ext-muted);
  font-weight: 500;
}

.cs-ext-intent__cta {
  width: 100%;
  margin-bottom: 10px;
}

/* Bottom-of-page download sibling (same visual language) */
.cs-ext-dl {
  --cs-ext-navy: #0a1324;
  --cs-ext-deep: #050a14;
  --cs-ext-blue: #1677ff;
  --cs-ext-sky: #4db3ff;
  --cs-ext-ink: #f2f4f7;
  --cs-ext-muted: rgba(242, 244, 247, 0.78);
  --cs-ext-border: rgba(77, 179, 255, 0.28);
  padding: 28px 0 40px;
  font-family: Montserrat, "Segoe UI", sans-serif;
}

.cs-ext-dl__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 28px 32px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--cs-ext-ink);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(22, 119, 255, 0.28) 0%, transparent 55%),
    linear-gradient(145deg, #0c1a30 0%, var(--cs-ext-navy) 48%, var(--cs-ext-deep) 100%);
  border: 1px solid var(--cs-ext-border);
  box-shadow: 0 12px 36px rgba(5, 10, 20, 0.3);
}

.cs-ext-dl__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.cs-ext-dl p.cs-ext-dl__eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-ext-sky);
  background: rgba(22, 119, 255, 0.16);
  border: 1px solid rgba(77, 179, 255, 0.28);
}

.cs-ext-dl h2.cs-ext-dl__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.cs-ext-dl p.cs-ext-dl__text {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(242, 244, 247, 0.88);
  font-weight: 500;
}

.cs-ext-dl__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  align-self: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--cs-ext-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 2px solid var(--cs-ext-blue);
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cs-ext-dl__cta:hover {
  background: transparent;
  color: var(--cs-ext-sky) !important;
  border-color: var(--cs-ext-sky);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .cs-ext-promo {
    padding: 12px 0;
  }

  .cs-ext-promo__inner,
  .cs-ext-dl__inner {
    padding: 22px 18px 18px;
    gap: 16px;
    border-radius: 16px;
  }

  .cs-ext-promo__brand-row {
    padding-right: 36px;
    gap: 12px;
  }

  .cs-ext-promo__fox {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .cs-ext-promo h2.cs-ext-promo__title,
  .cs-ext-dl h2.cs-ext-dl__title {
    font-size: 20px;
  }

  .cs-ext-promo p.cs-ext-promo__text,
  .cs-ext-dl p.cs-ext-dl__text {
    font-size: 14px;
  }

  .cs-ext-promo__actions {
    width: 100%;
    min-width: 0;
  }

  .cs-ext-promo__cta,
  .cs-ext-dl__cta {
    width: 100%;
  }

  /* Exit-intent remains desktop-oriented */
  .cs-ext-intent {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-ext-promo__cta,
  .cs-ext-intent__cta,
  .cs-ext-dl__cta,
  .cs-ext-intent__panel {
    transition: none;
    animation: none;
  }
}
