.app-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-confirm-modal[hidden] {
  display: none;
}

.app-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(4, 4, 12, 0.72);
  cursor: pointer;
}

.app-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #171722;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.app-confirm-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.app-confirm-message {
  margin: 0;
  color: #c9c9d8;
  font-size: 14px;
  line-height: 1.6;
}

.app-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.app-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ececf8;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.app-confirm-btn:hover,
.app-confirm-btn:focus {
  outline: none;
  border-color: rgba(157, 140, 255, 0.45);
  background: rgba(81, 66, 252, 0.12);
  color: #fff;
}

.app-confirm-btn-ok {
  border-color: rgba(81, 66, 252, 0.45);
  background: #5142fc;
  color: #fff;
}

.app-confirm-btn-ok:hover,
.app-confirm-btn-ok:focus {
  background: #6757ff;
}

.app-confirm-modal.is-danger .app-confirm-btn-ok {
  border-color: rgba(255, 100, 100, 0.45);
  background: #c0392b;
}

.app-confirm-modal.is-danger .app-confirm-btn-ok:hover,
.app-confirm-modal.is-danger .app-confirm-btn-ok:focus {
  background: #e74c3c;
}

.app-confirm-modal.is-warning .app-confirm-btn-ok {
  border-color: rgba(250, 204, 21, 0.35);
  background: #9a7b00;
}

.app-confirm-modal.is-warning .app-confirm-btn-ok:hover,
.app-confirm-modal.is-warning .app-confirm-btn-ok:focus {
  background: #b88900;
}

body.app-confirm-open {
  overflow: hidden;
}

body.admin-app .app-confirm-dialog {
  background: #1a1a24;
}
