.card-modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.card-modal-overlay.hidden {
  display: none;
}

.card-modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 70%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-out;
  position: relative;
  padding: 2rem;
}

.card-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.card-modal-overlay.active .card-modal-content {
  animation: fadeIn 0.3s ease-out;
}

@media (max-width: 500px) {
  .card-modal-content {
  max-width: 100%;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-out;
  position: relative;
  padding: 2rem;
}
}