
/* ---------- Overlay ---------- */
.dp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: rgba(11, 18, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dp-overlay.dp-open {
  display: flex;
  animation: dp-fade-in 0.3s ease-out forwards;
}

/* ---------- Card ---------- */
.dp-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: #ffffff;
  border: 1px solid rgba(230, 233, 239, 0.6);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(11, 18, 32, 0.45);
  animation: dp-scale-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Close button ---------- */
.dp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 9999px;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.dp-close:hover {
  background-color: #f1f5f9;
  color: #0b1220;
}

.dp-close:focus-visible {
  outline: none;
/*  box-shadow: 0 0 0 2px #0f59c9;*/
}

/* ---------- Icon ---------- */
.dp-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.dp-icon {
  height: 3.5rem;
  width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: color-mix(in srgb, #0f59c9 10%, transparent);
  color: #0f59c9;
}

/* ---------- Typography ---------- */
.dp-headline {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: #0b1220;
}

.dp-subheadline {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #0f59c9;
}

.dp-support {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

/* ---------- Promo code ---------- */
.dp-promo-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dp-promo {
  width: 100%;
  max-width: 20rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px dashed color-mix(in srgb, #0f59c9 40%, transparent);
  background-color: color-mix(in srgb, #0f59c9 6%, transparent);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.dp-promo:hover {
  border-color: color-mix(in srgb, #0f59c9 60%, transparent);
}

.dp-promo-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f59c9;
}

.dp-code {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #0b1220;
}

.dp-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0f59c9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dp-copy:hover {
  background-color: color-mix(in srgb, #0f59c9 10%, transparent);
}

.dp-copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f59e0b;
}

.dp-copy.dp-copied {
  color: #16a34a;
}

/* ---------- CTA ---------- */
.dp-cta-section {
  margin-top: 2rem;
}

.dp-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
/*  background: linear-gradient(to right, #ea7317, #f59e0b);*/
  background: #0f59c9;
  box-shadow: 0 10px 25px -5px color-mix(in srgb, #0f59c9 45%, transparent);
  cursor: pointer;
  transition: transform 0.15s;
  letter-spacing: 0.2px;
}

.dp-cta:hover {
  transform: scale(1.02);
  color: #ffffff;
}

.dp-cta:active {
  transform: scale(0.98);
  color: #ffffff;
}

.dp-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #f59e0b;
  color: #ffffff;
}

/* ---------- Dismiss ---------- */
.dp-dismiss {
  margin-top: 1rem;
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #64748b;
  cursor: pointer;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.dp-dismiss:hover {
  color: #0b1220;
  text-decoration: underline;
}

.dp-dismiss:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f59e0b;
  border-radius: 0.25rem;
}

/* ---------- Animations ---------- */
@keyframes dp-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dp-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .dp-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .dp-headline {
    font-size: 1.5rem;
  }

  .dp-subheadline {
    font-size: 1.125rem;
  }

  .dp-support {
    font-size: 0.875rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dp-overlay.dp-open,
  .dp-card {
    animation: none;
  }

  .dp-cta,
  .dp-close {
    transition: none;
  }
}
