/* Visibility toggle */
.pack-modal.hidden {
  display: none;
}

/* Modal shell */
.pack-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* Backdrop */
.pack-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Modal card */
.pack-modal-content {
  position: relative;
  max-width: 420px;
  margin: 12vh auto;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 24px 26px 28px;
  z-index: 1;

  /* subtle elevation */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);

  /* light border to keep it crisp on white pages */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Close button */
.pack-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  cursor: pointer;
}

.pack-modal-close:hover {
  color: #000;
}

/* Title */
#packTitle {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

/* Description */
#packDescription {
  margin: 0 0 16px;
  font-size: 14px;
  color: #444;
}

/* Details list */
#packDetails {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

#packDetails li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#packDetails li:last-child {
  border-bottom: none;
}

/* Small inline spinner */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 1);
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}
