.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.datapack-modal-content {
  background: #0f1115;
  border: 1px solid rgba(0, 210, 255, 0.3);
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  position: relative;
  padding: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalSlideUp 0.3s ease-out;
  color: #fff;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-icon-big {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-big img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.modal-icon-big.common {
  border-color: #888;
}
.modal-icon-big.rare {
  border-color: #0070dd;
  box-shadow: inset 0 0 10px rgba(0, 112, 221, 0.2);
}
.modal-icon-big.epic {
  border-color: #a335ee;
  box-shadow: inset 0 0 10px rgba(163, 53, 238, 0.2);
}
.modal-icon-big.legendary {
  border-color: #ff8000;
  box-shadow: inset 0 0 10px rgba(255, 128, 0, 0.2);
}

.modal-title-group h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.modal-title-group h3.common {
  color: #fff;
}
.modal-title-group h3.rare {
  color: #00d2ff;
}
.modal-title-group h3.epic {
  color: #a335ee;
}
.modal-title-group h3.legendary {
  color: #ff8000;
}

.modal-raw-id {
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
  font-family: monospace;
}

.details-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 20px;
  font-style: italic;
}

.details-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #00d2ff;
  letter-spacing: 1px;
  margin-bottom: 10px;
  border-left: 3px solid #00d2ff;
  padding-left: 10px;
}

.item-stats-container {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  color: #00ff88;
  font-family: monospace;
  font-weight: bold;
}

.btn-equip {
  width: 100%;
  padding: 12px;
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-equip:hover {
  background: #00d2ff;
  color: #000;
}

.btn-equip.unequip {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.05);
}

.btn-equip.unequip:hover {
  background: #ff4444;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #444;
  font-size: 24px;
  cursor: pointer;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.item-qty-tag {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #00d2ff;
  color: #000;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  font-family: monospace;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.btn-equip {
  letter-spacing: 2px;
  font-weight: 600;
}
