.dtx-alert-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 229, 255, .18), transparent 34%),
    radial-gradient(circle at 82% 15%, rgba(0, 245, 160, .13), transparent 32%),
    rgba(3, 9, 18, .76);
  backdrop-filter: blur(14px);
}

.dtx-alert-root.is-visible {
  display: flex;
}

.dtx-alert-card {
  width: min(100%, 460px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  color: #f7fbff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  overflow: hidden;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.dtx-alert-root.is-visible .dtx-alert-card {
  transform: none;
  opacity: 1;
}

.dtx-alert-body {
  padding: 28px;
}

.dtx-alert-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  margin-bottom: 18px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #03131d;
  background: linear-gradient(135deg, #00e5ff, #00f5a0);
  box-shadow: 0 0 32px rgba(0, 229, 255, .25);
}

.dtx-alert-card[data-type="warning"] .dtx-alert-icon { background: linear-gradient(135deg, #ffc857, #00e5ff); }
.dtx-alert-card[data-type="error"] .dtx-alert-icon { background: linear-gradient(135deg, #ff5d7d, #ffc857); }
.dtx-alert-card[data-type="success"] .dtx-alert-icon { background: linear-gradient(135deg, #00f5a0, #b8ff6a); }

.dtx-alert-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.dtx-alert-message {
  margin: 0;
  color: #c5d5e8;
  line-height: 1.55;
}

.dtx-alert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 28px 28px;
}

.dtx-alert-btn {
  min-height: 46px;
  border: 0;
  border-radius: 100px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.dtx-alert-btn-primary {
  flex: 1 1 160px;
  color: #03131d;
  background: linear-gradient(135deg, #00e5ff, #00f5a0);
  box-shadow: 0 18px 38px rgba(0, 229, 255, .22);
}

.dtx-alert-btn-secondary {
  flex: 1 1 140px;
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.dtx-loader-root {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
  padding: 22px;
  background: #050b14;
  color: #f7fbff;
}

.dtx-loader-root.is-visible {
  display: grid;
}

.dtx-loader-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.dtx-loader-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #00e5ff, #8c5cff, #00f5a0, #00e5ff);
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, .65));
  animation: dtxSpin 1.15s linear infinite;
}

.dtx-loader-box:before {
  content: "";
  position: absolute;
  top: -82px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .2), transparent 64%);
  animation: dtxPulse 2s ease-in-out infinite;
}

.dtx-loader-text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 440px;
  font-weight: 900;
  letter-spacing: .04em;
}

.dtx-loader-subtext {
  position: relative;
  z-index: 1;
  margin: -8px 0 0;
  color: #a8b8ca;
}

@keyframes dtxSpin {
  to { transform: rotate(360deg); }
}

@keyframes dtxPulse {
  50% { transform: scale(1.18); opacity: .55; }
}

@media (max-width: 520px) {
  .dtx-alert-body,
  .dtx-alert-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dtx-alert-actions {
    flex-direction: column;
  }

  .dtx-alert-btn {
    width: 100%;
  }
}
