/* ── Collections Modal ── */
#collection-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 250;
  backdrop-filter: blur(8px);
}

#collection-modal.hidden {
  display: none;
}

.collection-modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  width: 92%;
  padding: 30px;
  background: rgba(10, 10, 25, 0.95);
  border: 2px solid #00f3ff;
  border-radius: 12px;
  box-shadow:
    0 0 30px rgba(0, 243, 255, 0.4),
    inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.collection-modal-title {
  font-size: 22px;
  color: #00f3ff;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 4px;
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.collection-subtitle {
  font-size: 13px;
  color: rgba(0, 243, 255, 0.5);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* ── Collection Grid ── */
#collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

/* ── Reward Card ── */
.reward-card {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 2px solid rgba(0, 243, 255, 0.3);
  background: rgba(5, 5, 8, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
}

.reward-card.unlocked {
  cursor: pointer;
}

.reward-card.unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.3);
}

.reward-card.locked {
  opacity: 0.35;
  filter: grayscale(0.8);
}

.reward-card.locked .reward-symbol {
  visibility: hidden;
}

.reward-card.locked::after {
  content: "\1F512";
  position: absolute;
  font-size: 28px;
  opacity: 0.6;
}

/* ── Reward Card Parts ── */
.reward-symbol {
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 0 15px currentColor;
}

.reward-name {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px currentColor;
}

.reward-rank {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* ── Scanline overlay on reward cards ── */
.reward-card.unlocked::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(255, 255, 255, 0.02) 3px,
      rgba(255, 255, 255, 0.02) 4px
    );
  pointer-events: none;
  border-radius: 8px;
}

/* ── Card Themes ── */

/* ROOKIE reward: SENTINEL — cyan operative */
.reward-card-sentinel {
  border-color: rgba(0, 243, 255, 0.5);
  color: #00f3ff;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 243, 255, 0.08) 0%, transparent 60%),
    rgba(5, 5, 8, 0.95);
}

.reward-card-sentinel.unlocked {
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.05);
}

/* AGENT reward: SPECTER — purple infiltrator */
.reward-card-specter {
  border-color: rgba(157, 0, 255, 0.5);
  color: #c266ff;
  text-shadow: 0 0 4px rgba(194, 102, 255, 0.4);
  background:
    radial-gradient(circle at 50% 30%, rgba(157, 0, 255, 0.08) 0%, transparent 60%),
    rgba(5, 5, 8, 0.95);
}

.reward-card-specter.unlocked {
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.2), inset 0 0 10px rgba(157, 0, 255, 0.05);
}

/* SPECIALIST reward: INFERNO — red destroyer */
.reward-card-inferno {
  border-color: rgba(255, 0, 85, 0.5);
  color: #fff; /* NOSONAR */
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 0, 85, 0.08) 0%, transparent 60%),
    rgba(5, 5, 8, 0.95);
}

.reward-card-inferno.unlocked {
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.2), inset 0 0 10px rgba(255, 0, 85, 0.05);
}

/* GHOST reward: ZERO — gold legend */
.reward-card-zero {
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
    rgba(5, 5, 8, 0.95);
}

.reward-card-zero.unlocked {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.05);
}

/* NETRUNNER_ELITE reward: NEXUS — multicolor ultimate */
.reward-card-nexus {
  border-color: rgba(0, 243, 255, 0.5);
  color: #00f3ff;
  background:
    linear-gradient(135deg, rgba(0, 243, 255, 0.06), rgba(255, 0, 85, 0.06), rgba(157, 0, 255, 0.06)),
    rgba(5, 5, 8, 0.95);
}

.reward-card-nexus.unlocked {
  box-shadow:
    0 0 15px rgba(0, 243, 255, 0.2),
    0 0 25px rgba(255, 0, 85, 0.15),
    inset 0 0 10px rgba(157, 0, 255, 0.1);
  animation: nexus-border 3s ease infinite;
}

@keyframes nexus-border {
  0%, 100% { border-color: rgba(0, 243, 255, 0.6); }
  33% { border-color: rgba(255, 0, 85, 0.6); }
  66% { border-color: rgba(157, 0, 255, 0.6); }
}

/* ── Collection Close Button ── */
.collection-close-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: #fff; /* NOSONAR */
  border: 2px solid #ff0055;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.collection-close-btn:hover {
  background: #ff0055;
  color: #000; /* NOSONAR - hover state has bright background */
  box-shadow: 0 0 20px #ff0055;
}

/* ── Collection Counter ── */
.collection-count {
  font-size: 13px;
  color: rgba(0, 243, 255, 0.6);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.collection-count span {
  color: #00f3ff;
  font-weight: bold;
}

/* ── Responsive for Collections ── */
@media (max-width: 480px) {
  #collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .reward-symbol {
    font-size: 28px;
  }

  .reward-name {
    font-size: 13px;
  }
}
