.invest-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
  background: rgba(7, 12, 23, .76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.invest-prompt-overlay[hidden] {
  display: none !important;
}

.invest-prompt-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.invest-prompt-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 480px);
  margin: auto;
  padding: clamp(27px, 5vw, 42px);
  color: #182230;
  background:
    radial-gradient(ellipse at top right, rgba(216, 181, 112, .17), transparent 48%),
    linear-gradient(155deg, #ffffff, #f7f8fb);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 25px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  font-family: inherit;
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}

.invest-prompt-overlay.is-open .invest-prompt-dialog {
  transform: translateY(0) scale(1);
}

.invest-prompt-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  color: #647084;
  background: rgba(20, 32, 49, .055);
  border: 1px solid rgba(20, 32, 49, .08);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.invest-prompt-close:hover {
  color: #172538;
  background: rgba(20, 32, 49, .11);
}

.invest-prompt-close:focus-visible,
.invest-prompt-cta:focus-visible {
  outline: 3px solid #b99555;
  outline-offset: 4px;
}

.invest-prompt-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 38px 23px 0;
  color: #525f71;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.invest-prompt-brand-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #bd9a59;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(189, 154, 89, .13);
}

.invest-prompt-symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: #92703a;
  background: linear-gradient(145deg, #f7ecd6, #ead8b5);
  border: 1px solid rgba(168, 130, 65, .2);
  border-radius: 17px;
}

.invest-prompt-symbol svg {
  display: block;
  width: 34px;
  height: 34px;
}

.invest-prompt-eyebrow {
  margin: 0 0 9px;
  color: #98743a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.invest-prompt-dialog h2 {
  margin: 0 0 13px;
  color: #172336;
  font-size: clamp(25px, 5vw, 33px);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.035em;
}

.invest-prompt-description {
  margin: 0 0 23px;
  color: #647084;
  font-size: 14px;
  line-height: 1.75;
}

.invest-prompt-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  padding: 14px;
  background: rgba(27, 42, 61, .045);
  border: 1px solid rgba(27, 42, 61, .07);
  border-radius: 14px;
}

.invest-prompt-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #8b6934;
  background: #f1e5ce;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

.invest-prompt-detail strong,
.invest-prompt-detail span {
  display: block;
}

.invest-prompt-detail strong {
  margin-bottom: 4px;
  color: #273449;
  font-size: 13px;
  font-weight: 750;
}

.invest-prompt-detail div span {
  color: #778194;
  font-size: 12px;
  line-height: 1.5;
}

.invest-prompt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 53px;
  padding: 14px 20px;
  color: #fff !important;
  background: linear-gradient(110deg, #1b293c, #273c53);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(22, 39, 59, .16);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.invest-prompt-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(22, 39, 59, .22);
}

.invest-prompt-cta svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.invest-prompt-footnote {
  margin: 15px 0 0;
  color: #8992a0;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

body.invest-prompt-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .invest-prompt-overlay {
    padding: 13px;
  }

  .invest-prompt-dialog {
    padding: 27px 22px 23px;
    border-radius: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invest-prompt-overlay,
  .invest-prompt-dialog,
  .invest-prompt-close,
  .invest-prompt-cta {
    transition: none !important;
  }
}

/* AXIOM_FLASHY_INVEST_POPUP_V2 */

.invest-prompt-overlay {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(199, 159, 83, .18), transparent 42%),
    radial-gradient(ellipse at 85% 80%, rgba(80, 126, 181, .17), transparent 45%),
    rgba(5, 9, 18, .82);
  animation: axiomPromptBackdrop 5s ease-in-out infinite alternate;
}

.invest-prompt-dialog {
  overflow: hidden;
  border: 1px solid rgba(219, 187, 123, .65);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .48),
    0 0 0 1px rgba(219, 187, 123, .12),
    0 0 38px rgba(199, 159, 83, .17);
}

.invest-prompt-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #cba75d,
    #fff1c8,
    #b88c40,
    transparent
  );
  background-size: 220% 100%;
  animation: axiomPromptGoldLine 3s linear infinite;
  pointer-events: none;
}

.invest-prompt-overlay.is-open .invest-prompt-dialog {
  animation:
    axiomPromptEntrance .72s cubic-bezier(.16, 1, .3, 1) both,
    axiomPromptCardGlow 3s 0.8s ease-in-out infinite alternate;
}

.invest-prompt-brand-dot {
  animation: axiomPromptDot 1.8s ease-in-out infinite;
}

.invest-prompt-symbol {
  animation: axiomPromptFloat 3.4s ease-in-out infinite;
  box-shadow:
    0 0 0 5px rgba(189, 154, 89, .06),
    0 8px 25px rgba(189, 154, 89, .16);
}

.invest-prompt-symbol svg {
  filter: drop-shadow(0 2px 5px rgba(146, 112, 58, .22));
}

.invest-prompt-eyebrow {
  animation: axiomPromptTextFade .65s .15s both;
}

.invest-prompt-dialog h2 {
  animation: axiomPromptTextFade .7s .22s both;
}

.invest-prompt-description {
  color: #566478;
  animation: axiomPromptTextFade .7s .3s both;
}

.invest-prompt-detail {
  animation: axiomPromptTextFade .7s .38s both;
}

.invest-prompt-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(231, 202, 149, .45);
  box-shadow:
    0 8px 24px rgba(22, 39, 59, .22),
    0 0 0 1px rgba(208, 174, 105, .12);
  animation:
    axiomPromptButtonGlow 2.4s ease-in-out infinite alternate;
}

.invest-prompt-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  bottom: -60%;
  left: -65%;
  width: 42%;
  transform: skewX(-24deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .25),
    rgba(255, 239, 199, .55),
    transparent
  );
  animation: axiomPromptShimmer 3.2s .5s ease-in-out infinite;
  pointer-events: none;
}

.invest-prompt-cta > span,
.invest-prompt-cta > svg {
  position: relative;
  z-index: 1;
}

.invest-prompt-cta > svg {
  transition: transform .22s ease;
}

.invest-prompt-cta:hover > svg {
  transform: translateX(5px);
}

.invest-prompt-close {
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.invest-prompt-close:hover {
  transform: rotate(90deg);
}

@keyframes axiomPromptEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(.94);
  }
  65% {
    opacity: 1;
    transform: translateY(-3px) scale(1.008);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes axiomPromptCardGlow {
  from {
    box-shadow:
      0 30px 100px rgba(0, 0, 0, .48),
      0 0 22px rgba(199, 159, 83, .12);
  }
  to {
    box-shadow:
      0 34px 105px rgba(0, 0, 0, .5),
      0 0 47px rgba(199, 159, 83, .28);
  }
}

@keyframes axiomPromptBackdrop {
  from { background-color: rgba(5, 9, 18, .80); }
  to   { background-color: rgba(9, 14, 26, .88); }
}

@keyframes axiomPromptGoldLine {
  from { background-position: 100% 0; }
  to   { background-position: -120% 0; }
}

@keyframes axiomPromptFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-5px) rotate(2deg); }
}

@keyframes axiomPromptDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(189, 154, 89, .13); }
  50%      { box-shadow: 0 0 0 8px rgba(189, 154, 89, .04), 0 0 17px rgba(189, 154, 89, .45); }
}

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

@keyframes axiomPromptButtonGlow {
  from {
    box-shadow: 0 8px 22px rgba(22, 39, 59, .19), 0 0 0 rgba(203, 167, 93, 0);
  }
  to {
    box-shadow: 0 10px 29px rgba(22, 39, 59, .28), 0 0 19px rgba(203, 167, 93, .2);
  }
}

@keyframes axiomPromptShimmer {
  0%, 20% { left: -65%; }
  75%, 100% { left: 135%; }
}

@media (prefers-reduced-motion: reduce) {
  .invest-prompt-overlay,
  .invest-prompt-dialog,
  .invest-prompt-dialog::before,
  .invest-prompt-brand-dot,
  .invest-prompt-symbol,
  .invest-prompt-eyebrow,
  .invest-prompt-dialog h2,
  .invest-prompt-description,
  .invest-prompt-detail,
  .invest-prompt-cta,
  .invest-prompt-cta::before {
    animation: none !important;
    transition: none !important;
  }
}

/* AXIOM_DARK_POPUP_V3: premium dark navy and gold theme */

.invest-prompt-overlay {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(48, 91, 145, .24), transparent 43%),
    radial-gradient(ellipse at 85% 80%, rgba(193, 151, 69, .16), transparent 43%),
    rgba(3, 7, 15, .88) !important;
}

.invest-prompt-dialog {
  color: #f3f6fc !important;
  background:
    radial-gradient(ellipse at 92% 4%, rgba(207, 169, 94, .14), transparent 39%),
    radial-gradient(ellipse at 0% 100%, rgba(43, 82, 128, .16), transparent 47%),
    linear-gradient(145deg, #142238 0%, #0b1423 58%, #101c2e 100%) !important;
  border: 1px solid rgba(221, 183, 108, .48) !important;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .62),
    0 0 25px rgba(199, 159, 83, .12),
    inset 0 1px 0 rgba(255, 255, 255, .055) !important;
}

.invest-prompt-dialog h2 {
  color: #fff8eb !important;
  text-shadow: 0 2px 20px rgba(218, 181, 108, .10);
}

.invest-prompt-brand {
  color: #c6d0df !important;
}

.invest-prompt-brand-dot {
  background: #e8c477 !important;
}

.invest-prompt-eyebrow {
  color: #e7c278 !important;
}

.invest-prompt-description {
  color: #c1cada !important;
}

.invest-prompt-symbol {
  color: #f0ce85 !important;
  background: linear-gradient(
    145deg,
    rgba(220, 182, 104, .20),
    rgba(151, 111, 45, .11)
  ) !important;
  border: 1px solid rgba(224, 187, 112, .36) !important;
  box-shadow:
    0 0 0 5px rgba(207, 169, 94, .045),
    0 8px 28px rgba(0, 0, 0, .15),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

.invest-prompt-detail {
  background: rgba(255, 255, 255, .045) !important;
  border: 1px solid rgba(208, 220, 239, .13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.invest-prompt-number {
  display: grid !important;
  place-items: center !important;
  color: #f3d596 !important;
  background: rgba(206, 167, 91, .14) !important;
  border: 1px solid rgba(221, 184, 111, .33) !important;
  border-radius: 12px !important;
}

.invest-prompt-number svg {
  display: block;
  width: 22px;
  height: 22px;
}

.invest-prompt-detail strong {
  color: #f4f6fc !important;
}

.invest-prompt-detail div span {
  color: #b8c4d5 !important;
}

.invest-prompt-cta,
.invest-prompt-cta:hover {
  color: #172235 !important;
  background: linear-gradient(110deg, #f2d798 0%, #d7af60 48%, #f5dfa7 100%) !important;
  border: 1px solid rgba(255, 239, 194, .72) !important;
  box-shadow:
    0 8px 26px rgba(0, 0, 0, .27),
    0 0 18px rgba(221, 181, 98, .15),
    inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}

.invest-prompt-cta:hover {
  filter: brightness(1.08);
}

.invest-prompt-cta::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .28),
    rgba(255, 255, 255, .78),
    transparent
  ) !important;
}

.invest-prompt-footnote {
  color: #9eacc0 !important;
}

.invest-prompt-close {
  color: #d6deea !important;
  background: rgba(255, 255, 255, .065) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

.invest-prompt-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .13) !important;
}

@keyframes axiomPromptDarkGlow {
  from {
    border-color: rgba(221, 183, 108, .34);
    box-shadow:
      0 30px 100px rgba(0, 0, 0, .58),
      0 0 22px rgba(199, 159, 83, .10);
  }
  to {
    border-color: rgba(239, 204, 133, .65);
    box-shadow:
      0 34px 105px rgba(0, 0, 0, .64),
      0 0 42px rgba(199, 159, 83, .23);
  }
}

.invest-prompt-overlay.is-open .invest-prompt-dialog {
  animation:
    axiomPromptEntrance .72s cubic-bezier(.16, 1, .3, 1) both,
    axiomPromptDarkGlow 3s .8s ease-in-out infinite alternate !important;
}

@media (prefers-reduced-motion: reduce) {
  .invest-prompt-overlay.is-open .invest-prompt-dialog {
    animation: none !important;
  }
}
