.reward-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.reward-box {
  background: radial-gradient(at top left, #00354d22 0%, #00354d00 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 0 25px rgba(255, 255, 255, 0.03);
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.reward-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 0 25px rgba(255, 255, 255, 0.05);
}

.image-frame {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1em;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
}

.reward-box h3 {
  font-size: 1.1em;
  margin: 0 0 0.5em 0;
  color: white;
}

.reward-box p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5em;
}

.redeem-btn {
  background-color: #ffe600;
  color: #00354d;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.redeem-btn:hover {
  background-color: #ffeb00;
  transform: translateY(-1px);
}

/* === MODAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 2em;
  padding-top: 3.5em;
  max-width: 460px;
  width: 90%;
  text-align: center;
  color: white;
  position: relative;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 2.2em;
  cursor: pointer;
  color: white;
  line-height: 1;
  z-index: 10;
}

.modal-image-frame {
  margin-top: 1.5em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1em;
}

.modal-image-frame img,
#modal-reward-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px !important;
}

.modal-content h2 {
  font-size: 1.2em;
  color: white;
  margin-bottom: 0.5em;
}

.modal-content p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
}

.modal-message {
  margin-top: 1.5em;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
}

/* === RESPONSIVE FIX === */
@media (max-width: 600px) {
  .reward-box {
    padding: 1em;
    min-height: auto;
  }

  .reward-box.skeleton {
    min-height: 360px;
    padding: 1em;
  }

  .skeleton-image {
    height: 200px;
  }
}

/* === SKELETON-LOADING === */
.reward-box.skeleton {
  background: radial-gradient(at top left, #00354d22 0%, #00354d00 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 0 25px rgba(255, 255, 255, 0.03);
  color: transparent;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reward-box.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 1.5s infinite ease-out;
  pointer-events: none;
  transform: translateX(-300px) skewX(-20deg);
  filter: blur(3px);
  will-change: transform;
}


.skeleton-image {
  width: 100%;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 1.5em;
}

.skeleton-line {
  height: 14px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    transform: translateX(-300px) skewX(-20deg);
  }
  100% {
    transform: translateX(120%) skewX(-20deg);
  }
}

