.custom_gradient_overlay {
    background:
        radial-gradient(circle at 50% 0, rgba(167, 139, 250, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(96, 165, 250, 0.12) 10%, transparent 50%),
        linear-gradient(140deg, #e0e7ff, #fef2f2);
}

.modal_backdrop_blur {
    background: rgba(2, 6, 23, 0.46); /* رنگ تیره */
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.modal_backdrop_blur.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal_content_glass {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
        rgba(248, 250, 252, 0.72); /* پس‌زمینه روشن‌تر برای مودال */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.modal_glow_before {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.26), transparent 70%);
    filter: blur(14px);
}

.modal_glow_after {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 68%);
    filter: blur(16px);
}

/* -------------------------------------------------------- */

.modal_header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.modal_body {
    /* display: flex; */
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    overflow: auto;
    max-height: 75vh;
}

.close_btn {
  border: 0;
  background: rgba(125, 125, 125, 0.68);
  background: #c5c5c5;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
  flex: 0 0 auto;
}

.close_btn:hover {
    background: #353535;
}

.modal {
  position: relative;
  width: min(92vw, 520px);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.78)), rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(55, 55, 55, 0.76);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transform: translateY(22px) scale(0.94);
  opacity: 1;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
  overflow: hidden;
  max-height: 97vh;
}
