/* Reusable modal design system */
.zs-modal .modal-content {
  color: var(--text, #e5ecff);
  border: 1px solid rgba(97, 165, 255, 0.42);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 16, 44, 0.97), rgba(7, 12, 34, 0.97));
  box-shadow:
    0 0 0 1px rgba(97, 165, 255, 0.22),
    0 20px 44px rgba(2, 6, 23, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  outline: none;
  backdrop-filter: blur(12px);
}

.zs-modal .modal-header,
.zs-modal .modal-footer {
  border-color: rgba(168, 200, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.zs-modal .modal-header {
  padding: 1rem 1.15rem;
}

.zs-modal .modal-footer {
  padding: 0.95rem 1.15rem;
  gap: 0.55rem;
}

.zs-modal .modal-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #e6f0ff;
}

.zs-modal .modal-body {
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(7, 12, 34, 0.74);
}

.zs-modal .btn-close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(178, 209, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.08);
  background-size: 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0.88;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.zs-modal .btn-close:hover {
  transform: translateY(-1px);
  border-color: rgba(198, 225, 255, 0.6);
  background-color: rgba(78, 169, 255, 0.25);
  opacity: 1;
}

.zs-modal.fade .modal-dialog {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.zs-modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.zs-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

.zs-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.zs-modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(74, 123, 255, 0.4);
  border-radius: 4px;
}

.zs-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 123, 255, 0.6);
}

.zs-modal .modal-body {
  scrollbar-color: rgb(60 59 66 / 40%) transparent;
  scrollbar-width: thin;
}

.zs-modal .modal-footer .btn {
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.zs-modal .modal-footer .btn:hover {
  transform: translateY(-1px);
}

.btn-zs-ghost {
  color: #dbeafe;
  border: 1px solid rgba(148, 196, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.btn-zs-ghost:hover {
  color: #ffffff;
  border-color: rgba(191, 221, 255, 0.8);
  box-shadow: 0 8px 20px rgba(26, 89, 200, 0.28);
}

.btn-zs-danger {
  color: #fff;
  border: 1px solid rgba(253, 164, 175, 0.45);
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.3);
}

.btn-zs-danger:hover {
  color: #fff;
  filter: brightness(1.07);
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.42);
}

.btn-zs-danger-soft {
  color: #fecaca;
  border: 1px solid rgba(252, 165, 165, 0.45);
  background: rgba(127, 29, 29, 0.3);
}

.btn-zs-danger-soft:hover {
  color: #fee2e2;
  border-color: rgba(254, 202, 202, 0.72);
  background: rgba(127, 29, 29, 0.5);
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.35);
}
