.dhx-plan-prompt-lock {
  overflow: hidden;
}

.dhx-plan-prompt {
  --prompt-accent: #5ec5c2;
  --prompt-accent-soft: rgba(94, 197, 194, 0.14);
  --prompt-accent-border: rgba(94, 197, 194, 0.38);
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: dhxPromptFade 180ms ease-out;
}

.dhx-plan-prompt[data-tier="pro"] {
  --prompt-accent: #e8bd4c;
  --prompt-accent-soft: rgba(232, 189, 76, 0.14);
  --prompt-accent-border: rgba(232, 189, 76, 0.42);
}

.dhx-plan-prompt__dialog {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid var(--prompt-accent-border);
  border-radius: 8px;
  background: #0d111a;
  color: #f8fafc;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  animation: dhxPromptEnter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dhx-plan-prompt__bar {
  height: 4px;
  background: var(--prompt-accent);
}

.dhx-plan-prompt__content {
  padding: 26px 26px 22px;
}

.dhx-plan-prompt__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #94a3b8;
  font: 700 24px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.dhx-plan-prompt__close:hover,
.dhx-plan-prompt__close:focus-visible {
  border-color: var(--prompt-accent-border);
  background: var(--prompt-accent-soft);
  color: #f8fafc;
  outline: none;
}

.dhx-plan-prompt__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 54px 16px 0;
  padding: 5px 10px;
  border: 1px solid var(--prompt-accent-border);
  border-radius: 999px;
  background: var(--prompt-accent-soft);
  color: var(--prompt-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.dhx-plan-prompt__title {
  margin: 0;
  color: #f8fafc;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.dhx-plan-prompt__message {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.75;
}

.dhx-plan-prompt__message strong {
  color: #f8fafc;
  font-weight: 800;
}

.dhx-plan-prompt__metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-variant-numeric: tabular-nums;
}

.dhx-plan-prompt__metric span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.dhx-plan-prompt__metric b {
  color: var(--prompt-accent);
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}

.dhx-plan-prompt__note {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}

.dhx-plan-prompt__actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 22px;
}

.dhx-plan-prompt__action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.dhx-plan-prompt__action:active {
  transform: scale(0.985);
}

.dhx-plan-prompt__action--later {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: transparent;
  color: #cbd5e1;
}

.dhx-plan-prompt__action--contact {
  border: 1px solid var(--prompt-accent);
  background: var(--prompt-accent);
  color: #081014;
}

.dhx-plan-prompt__action:hover {
  filter: brightness(1.08);
}

.dhx-plan-prompt__action:focus-visible {
  outline: 3px solid var(--prompt-accent-border);
  outline-offset: 2px;
}

body.light .dhx-plan-prompt {
  background: rgba(31, 41, 55, 0.42);
}

body.light .dhx-plan-prompt__dialog {
  background: #fffdf8;
  color: #172033;
  box-shadow: 0 28px 70px rgba(57, 45, 21, 0.24);
}

body.light .dhx-plan-prompt__title,
body.light .dhx-plan-prompt__message strong {
  color: #172033;
}

body.light .dhx-plan-prompt__message {
  color: #475569;
}

body.light .dhx-plan-prompt__metric {
  border-color: rgba(120, 91, 24, 0.16);
  background: rgba(120, 91, 24, 0.045);
}

body.light .dhx-plan-prompt__metric span,
body.light .dhx-plan-prompt__note {
  color: #64748b;
}

body.light .dhx-plan-prompt__action--later {
  border-color: rgba(71, 85, 105, 0.3);
  color: #334155;
}

@keyframes dhxPromptFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dhxPromptEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .dhx-plan-prompt {
    align-items: end;
    padding: 12px;
  }

  .dhx-plan-prompt__dialog {
    width: 100%;
  }

  .dhx-plan-prompt__content {
    padding: 22px 18px 18px;
  }

  .dhx-plan-prompt__title {
    padding-right: 42px;
    font-size: 20px;
  }

  .dhx-plan-prompt__actions {
    grid-template-columns: 1fr;
  }

  .dhx-plan-prompt__action--contact {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhx-plan-prompt,
  .dhx-plan-prompt__dialog {
    animation: none;
  }
}
