.debt-modal {
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  position: relative;
}
.modal-backdrop.show { opacity: 0.35; }

/* Ensure modals are hidden by default */
.modal:not(.show) {
  display: none !important;
  pointer-events: none;
}

#avatarModal:not(.show),
#academicYearModal:not(.show),
#logoutModal:not(.show) {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.btn-close-custom {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe5e9 !important;
  display: grid;
  place-items: center;
  opacity: 1;
  border: 1px solid #ffd1d8;
  color: #e03143;
}
.btn-close-custom:hover {
  background: #ffd6dc !important;
  color: #c9192d;
}
.modal-content{ position:relative; }
.btn-close-custom{
  position:absolute;
  top:10px;
  inset-inline-start:10px;
  width:34px;height:34px;border-radius:50%;
  background:#ffe5e9 !important;border:1px solid #ffd1d8;color:#e03143;
  z-index:1060;pointer-events:auto;
  display:flex;align-items:center;justify-content:center;
}
.btn-close-custom:hover{ background:#ffd6dc !important;color:#c9192d; }