.om-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 2, 12, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.om-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.om-modal-panel {
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(160, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(28, 18, 58, 0.98), rgba(9, 7, 23, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  color: #f5f1ff;
  transform: translateY(10px) scale(0.98);
  transition: transform 140ms ease;
}

.om-modal-overlay.is-open .om-modal-panel {
  transform: translateY(0) scale(1);
}

.om-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cff, #00b7ff);
  box-shadow: 0 14px 30px rgba(78, 42, 180, 0.36);
}

.om-modal-panel.is-danger .om-modal-icon {
  background: linear-gradient(135deg, #ff3c71, #a915ff);
}

.om-modal-body {
  min-width: 0;
}

.om-modal-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.om-modal-message {
  margin: 10px 0 0;
  color: #c8beef;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.om-modal-input {
  width: 100%;
  margin-top: 16px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(184, 164, 255, 0.32);
  background: rgba(5, 3, 13, 0.64);
  color: #f5f1ff;
  outline: none;
}

.om-modal-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}

.om-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.om-modal-btn {
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.om-modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.om-modal-btn:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.32);
  outline-offset: 2px;
}

.om-modal-btn-primary {
  background: linear-gradient(135deg, #8b5cff, #6e38ff 55%, #00b7ff);
}

.om-modal-btn-secondary {
  color: #e8e1ff;
  background: rgba(139, 92, 255, 0.16);
  border: 1px solid rgba(160, 132, 255, 0.28);
}

.om-modal-btn-danger {
  background: linear-gradient(135deg, #ff3c71, #a915ff);
}

@media (max-width: 520px) {
  .om-modal-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .om-modal-icon {
    width: 38px;
    height: 38px;
  }

  .om-modal-actions {
    justify-content: stretch;
  }

  .om-modal-btn {
    flex: 1;
  }
}
