.mysu-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mysu-popup[hidden] {
  display: none;
}

.mysu-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.mysu-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.mysu-popup-dialog {
  position: relative;
  background: #fff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.mysu-popup.is-open .mysu-popup-dialog {
  transform: translateY(0) scale(1);
}

.mysu-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.mysu-popup-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.mysu-popup-close:focus {
  outline: 2px solid #003a70;
  outline-offset: 2px;
}

.mysu-popup-image {
  width: 100%;
  line-height: 0;
}

.mysu-popup-image img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.mysu-popup-title {
  margin: 0 0 14px 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #003a70;
  line-height: 1.25;
}

.mysu-popup-content {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

.mysu-popup-content p:last-child {
  margin-bottom: 0;
}

.mysu-popup-actions {
  margin-top: 20px;
}

.mysu-popup-button {
  display: inline-block;
  padding: 12px 28px;
  background: #003a70;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s, transform 0.25s;
}

.mysu-popup-button:hover,
.mysu-popup-button:focus {
  background: #002550;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

@media (max-width: 600px) {
  .mysu-popup {
    padding: 12px;
  }

  .mysu-popup-body {
    padding: 20px;
  }

  .mysu-popup-title {
    font-size: 1.3rem;
  }

  .mysu-popup-content {
    font-size: 0.95rem;
  }

  .mysu-popup-button {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}

body.mysu-popup-open {
  overflow: hidden;
}
