/* ArmorBullet custom SweetAlert-style popups */
.ab-alert-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.ab-alert-root.is-open {
  opacity: 1;
  visibility: visible;
}
.ab-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ab-alert-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background: #121410;
  border: 1px solid #1e221a;
  color: #f5f6f2;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
  text-align: center;
}
.ab-alert-root.is-open .ab-alert-card {
  transform: scale(1) translateY(0);
}
html:not(.dark) .ab-alert-card {
  background: #fff;
  border-color: #e5e7eb;
  color: #1d2016;
}
.ab-alert-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  border: 3px solid transparent;
  animation: ab-alert-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.ab-alert-icon--error {
  color: #fca5a5;
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.25);
}
.ab-alert-icon--success {
  color: #e6e9de;
  border-color: #68714f;
  background: rgba(104, 113, 79, 0.3);
}
.ab-alert-icon--warning {
  color: #fde68a;
  border-color: #92400e;
  background: rgba(146, 64, 14, 0.25);
}
.ab-alert-icon--info {
  color: #ced3be;
  border-color: #51593c;
  background: rgba(81, 89, 60, 0.35);
}
html:not(.dark) .ab-alert-icon--error {
  color: #b91c1c;
  background: #fef2f2;
}
html:not(.dark) .ab-alert-icon--success {
  color: #3f4430;
  background: #f5f6f2;
}
html:not(.dark) .ab-alert-icon--warning {
  color: #b45309;
  background: #fffbeb;
}
html:not(.dark) .ab-alert-icon--info {
  color: #51593c;
  background: #f5f6f2;
}
.ab-alert-title {
  font-family: 'Violet Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.ab-alert-text {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.8;
  margin: 0 0 1.35rem;
  white-space: pre-line;
}
.ab-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.ab-alert-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  min-width: 7rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ab-alert-btn--confirm {
  background: #e6e9de;
  color: #0f110c;
}
.ab-alert-btn--confirm:hover {
  background: #fff;
}
.ab-alert-btn--cancel {
  background: transparent;
  color: inherit;
  border: 1px solid #1e221a;
  opacity: 0.85;
}
html:not(.dark) .ab-alert-btn--cancel {
  border-color: #d1d5db;
}
.ab-alert-btn--cancel:hover {
  opacity: 1;
  border-color: #68714f;
}
.ab-alert-btn--danger {
  background: #7f1d1d;
  color: #fecaca;
}
.ab-alert-btn--danger:hover {
  background: #991b1b;
}
@keyframes ab-alert-pop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
body.ab-alert-open {
  overflow: hidden;
}
