/* ===== Modal ===== */
.modal{
  display:none;
  position:fixed;
  z-index: 1000;
  left:0; top:0;
  width:100%; height:100%;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
}
.modal.active{display:flex; align-items:center; justify-content:center;}
.modal-content{
  background: rgba(255,255,255,.96);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 820px;
  width: min(920px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--shadow-md);
}
.modal-content::-webkit-scrollbar{width: 8px;}
.modal-content::-webkit-scrollbar-track{background: transparent;}
.modal-content::-webkit-scrollbar-thumb{background: rgba(15,23,42,.15); border-radius: 4px;}
.modal-content::-webkit-scrollbar-thumb:hover{background: rgba(15,23,42,.25);}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.modal-header h2{font-size: 18px; font-weight: 780; letter-spacing:-0.01em;}
.close-btn{
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 20px;
  color: rgba(17,24,39,.70);
  cursor:pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.close-btn:hover{background: rgba(15,23,42,.10); color: rgba(17,24,39,.88);}
.modal-footer .btn{min-width: 96px;}

.modal-footer{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  display:flex;
  gap: 12px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
