.astit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.astit-modal.is-open {
  display: block;
}

.astit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.astit-modal.is-open .astit-modal__backdrop {
  opacity: 1;
}

.astit-modal__panel-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.astit-modal__panel {
  width: min(520px, 92vw);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #0d121c;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.35);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease;
}

.dark .astit-modal__panel {
  background: rgba(2, 6, 23, 0.75);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.astit-modal.is-open .astit-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.astit-modal__panel-inner {
  padding: 22px 22px 18px;
}

.astit-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 89, 242, 0.12);
  color: #0d59f2;
}

.dark .astit-modal__badge {
  background: rgba(13, 89, 242, 0.18);
  color: #93c5fd;
}

.astit-modal__title {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.astit-modal__message {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
}

.dark .astit-modal__message {
  color: rgba(226, 232, 240, 0.8);
}

.astit-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.dark .astit-modal__actions {
  border-top-color: rgba(148, 163, 184, 0.16);
}

.astit-modal__btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease;
}

.astit-modal__btn:active {
  transform: scale(0.98);
}

.astit-modal__btn--primary {
  background: #0d59f2;
  color: white;
  box-shadow: 0 14px 30px rgba(13, 89, 242, 0.25);
}

.astit-modal__btn--primary:hover {
  background: #0b4cd0;
  box-shadow: 0 18px 40px rgba(13, 89, 242, 0.3);
}

.astit-modal__btn--ghost {
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
}

.dark .astit-modal__btn--ghost {
  background: rgba(148, 163, 184, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .astit-modal__backdrop,
  .astit-modal__panel,
  .astit-modal__btn {
    transition: none;
  }
}
