/* پس‌زمینه تار */
.popup-overlay {
  display: none; /* در ابتدا مخفی */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: inherit; /* فونت از قالب */
  padding: 15px;
  box-sizing: border-box;
}

/* ========================= */
/* CSS پاپ‌آپ رنگ بنفش مستقل */
/* ========================= */
#resultModal .popup-content {
  background: #800080 !important;
  color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}










/* عکس */
.popup-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* متن */
.popup-text {
  font-size: 16px;
  color: var(--popup-text-color, #333);
  line-height: 1.5;
  word-wrap: break-word;
}

/* دکمه بستن */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: var(--popup-close-color, #555);
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: var(--popup-close-hover, #000);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
  .popup-content {
    padding: 20px;
  }
  .popup-text {
    font-size: 14px;
  }
  .close-btn {
    font-size: 20px;
  }
}
