.inv-adaptive-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  height: calc(100vh - 140px);
  font-family: "Orbitron", sans-serif;
  color: #e0e6ed;
  overflow: hidden;
}

.inv-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a2638;
  padding-bottom: 10px;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.inv-logo {
  font-size: 1.1rem;
  color: #00d4ff;
  letter-spacing: 3px;
  margin: 0;
}

.inv-stats-bar {
  font-size: 11px;
  color: #4a5d75;
}

.text-cyan {
  color: #00d4ff;
  font-weight: bold;
}

.inv-layout-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.inv-panel {
  background: rgba(10, 15, 24, 0.85);
  border: 1px solid #1a2638;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  min-height: 0;
}

.panel-label {
  background: #1a2638;
  color: #00d4ff;
  font-size: 10px;
  padding: 5px 12px;
  letter-spacing: 2px;
  font-weight: 800;
  border-bottom: 1px solid #1a2638;
  flex-shrink: 0;
}

.loadout {
  width: 240px;
  flex-shrink: 0;
  overflow-y: auto;
}

.loadout::-webkit-scrollbar,
.cargo-grid-v2::-webkit-scrollbar {
  width: 4px;
}

.loadout::-webkit-scrollbar-thumb,
.cargo-grid-v2::-webkit-scrollbar-thumb {
  background: #1a2638;
  border-radius: 2px;
}

.loadout::-webkit-scrollbar-thumb:hover,
.cargo-grid-v2::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

.equip-list-compact {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equip-group {
  margin-bottom: 15px;
}

.group-label {
  font-size: 10px;
  color: #4a5d75;
  margin-bottom: 5px;
  padding-left: 5px;
  text-transform: uppercase;
}

.equip-row-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(26, 38, 56, 0.8);
  transition: 0.2s;
  cursor: pointer;
}

.equip-row-mini:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
}

.slot-name-tiny {
  font-size: 9px;
  color: #4a5d75;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equip-box-mini {
  width: 32px;
  height: 32px;
  background: #000;
  border: 1px solid #1a2638;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cargo {
  flex: 1;
  min-width: 0;
}

.cargo-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

.item-slot {
  width: 60px;
  height: 60px;
  background: rgba(5, 8, 12, 0.9);
  border: 1px solid #1a2638;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
}

.item-img-grid,
.item-img-mini {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.item-slot:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.item-slot.active {
  border-color: #00d4ff;
  box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.3);
}

.separator {
  height: 1px;
  background: #1a2638;
  margin: 10px 5px;
}

@media (max-width: 768px) {
  .inv-adaptive-container {
    height: auto;
    overflow-y: visible;
  }

  .inv-layout-wrapper {
    flex-direction: column;
    height: auto;
  }

  .loadout {
    width: 100%;
    max-height: 300px;
  }

  .cargo {
    height: 400px;
  }
}

.item-slot.equipped-in-storage {
  border: 2px solid #00d2ff;
  box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.3);
  opacity: 0.8;
}

.equipped-tag {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #00d2ff;
  color: #000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
  z-index: 2;
}
