.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);
}

.modal-content {
  background: #12151a;
  border: 1px solid #00d2ff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 25px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
  color: #fff;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.item-name {
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rarity-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
}

.item-name.common {
  color: #ffffff;
}
.item-name.uncommon {
  color: #1eff00;
}
.item-name.rare {
  color: #0070dd;
}
.item-name.epic {
  color: #a335ee;
}
.item-name.legendary {
  color: #ff8000;
}

.item-description {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 20px;
}

.item-stats-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 25px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.85rem;
}

.stat-label {
  color: #00d2ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-value {
  color: #fff;
  font-weight: bold;
}

.btn-equip {
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid #00d2ff;
  color: #00d2ff;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.btn-equip:hover {
  background: #00d2ff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-equip.unequip {
  border-color: #ff4444;
  color: #ff4444;
}

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